美文网首页
Python 17 Programming Tutorial

Python 17 Programming Tutorial

作者: 豆表示低调 | 来源:发表于2016-08-31 11:41 被阅读0次
    def add_numbers(*args):
        total = 0
        for a in args:
            total += a
        print(total)
    
    add_numbers(3)
    add_numbers(3, 32)
    add_numbers(3, 43, 5453, 354234, 463463)
    

    相关文章

      网友评论

          本文标题:Python 17 Programming Tutorial

          本文链接:https://www.haomeiwen.com/subject/csaxettx.html