python中 ? : 三元表达式的使用介绍

By 水木神風 at 2017-08-15 • 0人收藏 • 1726人看过

variable = exper and b or c

variable = a if exper else b

登录后方可回帖