#计算1+2+3+4+...+100 结果 import functools import operator print(functools.reduce(operator.add, list(range(1, 101))))
结算结果:5050