标签:结果 port nbsp imp import add cto div UNC
1 from functools import reduce 2 3 def add1(x,y): 4 return x + y 5 6 print(reduce(add1,range(1,10))) 7 8 9 运行结果:45
reduce
原文地址:https://www.cnblogs.com/xaiobong/p/9889005.html