代码

# * 后面的参数可以不输入,也可以输入多个

def howlong(first, *other):
    print( 1 + len(other))

howlong(123, 213, 123, 123)

运行

最后修改:2019 年 09 月 18 日
如果觉得我的文章对你有用,请随意赞赏