# 三目运算符
# 生成随机数,取最大值
import random as r
a = r.random()
b = r.random()
c = a if a > b else b
print(f"a = {a}, b = {b}, 最大的数是c = {c} ")
# 三目运算符
# 生成随机数,取最大值
import random as r
a = r.random()
b = r.random()
c = a if a > b else b
print(f"a = {a}, b = {b}, 最大的数是c = {c} ")