📜  python 数组总和 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:02.996000             🧑  作者: Mango

代码示例1
def simpleArraySum(ar):
    x=0
    for i in range(0,ar_count):
        x = x + ar[i]
    return x