a = [2,3,5,8]print(sum(a))输出:18print(sum(i for i in a))输出:18print(sum(1 for i in a))输出:4最后一项相当于统计a的长度