result = 值1 if 条件 else 值2

如果条件为真:result = 值1
如果条件为假:result = 值2

 

posted on 2017-06-13 09:23  Zoe233  阅读(97)  评论(0编辑  收藏  举报