小醉寒i

【原创】for循环配合def方法实现值得加法
def addd(*args):s = 0 for i in args: s = s + i return...
扫描右侧二维码阅读全文
08
2019/07

【原创】for循环配合def方法实现值得加法

def addd(*args):

s = 0
for i in args:
    s = s + i
return s

all = addd(1,2,3,4,5)
print(all)


扫描二维码,在手机上阅读!
Last modification:July 11th, 2019 at 09:12 pm
果觉得我的文章对你有用,请随意赞赏瓶饮料

Leave a Comment