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