errorType / 26.py
Beuys's picture
Upload 47 files
e16247a verified
raw
history blame
143 Bytes
a=3
b=2
c=1
f = [a,b,c]
#sum函数是对列表,元组等可迭代对象内的所有值求和
#错误写法:d = sum(a,b,c)
d=sum(f)
print(d)