def fun(*nums):
return max(nums)#换成min就是最小值
简单的用可变参数求最大值
最新推荐文章于 2023-04-27 17:05:24 发布
def fun(*nums):
return max(nums)#换成min就是最小值