Python题目:2个list列表相加【杭州多测师】【杭州多测师_王sir】

 

 

一个列表相加

def test(value):
    s = 0
    for i in value:
        s+=i
    return s

print(test([4,2,3]))

 

posted @ 2022-06-27 20:35  多测师_王sir  阅读(43)  评论(0编辑  收藏  举报