摘要: 用法: C=A if contion else B 这相当于: if(contion): C=A else: C=B 此外,三目运算符可以嵌套使用,以应对复杂情形。 阅读全文
posted @ 2021-07-16 19:14 fuxiqi 阅读(189) 评论(0) 推荐(0)