1 a, b, c = 1, 2, 3 2 (c = a if a>b else b)的变法 3 二维列表: 4 c = [b,a][a>b] 5 6 其他: 7 c = (a>b and [a] or [b])[0]