三元运算符语法:
成立做的事: 条件? 不成立做的事
x,y = 4,5if x < y: small = xelse: small = yprint(small)#三元操作符语法:x if 条件 else ysmall = x if x < y else yprint(small)