Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 222 Bytes

File metadata and controls

19 lines (14 loc) · 222 Bytes
@author jackzhenguo
@desc 
@date 2019/2/20

20 求和函数

求和:

In [181]: a = [1,4,2,3,1]

In [182]: sum(a)
Out[182]: 11

In [185]: sum(a,10) #求和的初始值为10
Out[185]: 21