三元运算

python print(1 if 3 >2 else 2)

javascript var res=5>3?1:2

posted @ 2017-04-22 15:00  Vincen_shen  阅读(86)  评论(0)    收藏  举报