a if a> b else b
a if a>b else c if c>d else d = a if a>b else (c if c > d else d)
import random
a=random.randint(0, 5)
b=random.randint(6,10)
c=random.randint(20,30)
d=random.randint(40,50)
m=a if a>b else b
n=a if a>b else c if c>d else d
m,n
```输出
```python
(8, 41)