20170420条件表达式的三元操作符x if 条件 else y x,y = 4,5if x < y: small = xelse: small = yprint(small)#三元操作符语法:x if 条件 else ysmall = x if x < y else yprint(small)