a, b, c = 1, 2, 3
1.常规
if a > b: c = a else: c = b
2.表达式
c = a if a > b else b
3.列表
c = [b, a][a > b]
4.另类写法
c = (a > b and [a] or [b])[0]