reduce() 函数语法:
reduce(function, iterable[, initializer])
例:
from functools import reduce s = reduce(lambda x,y:x+y,range(1,10)) print(s) #45