python写的,大概是: num_max=max(nums) out=[] for num in nums: if num >num_max: out.append(num) else: out.append(num_max) print (out)
点赞 1

相关推荐

牛客网
牛客企业服务