5.接收两个数字参数,返回比较大的那个数字。 def compare(a,b): return a if a > b else b # 三元表达式 print(compare(20,100)) 相关文章: