摘要: 三元表达式 1 语法风格 条件成立时要返回的值 if 条件 else 条件不成立时要返回的值 x=1 y=2 res=x if x > y else y print(res) res=111111 if 'egon' == 'egon' else 2222222222 print(res) 2 应用 阅读全文
posted @ 2020-03-25 18:32 Henry121 阅读(166) 评论(0) 推荐(0) 编辑