def func(list1): list2 =[] for i in range(len(list1)): sum = 1 for j in list1: sum*=j sum = sum//list1[i] list2.append(sum) print(max(list2)) value=[4,1,2,6] func(value) #调用函数