代码
# * 后面的参数可以不输入,也可以输入多个
def howlong(first, *other):
print( 1 + len(other))
howlong(123, 213, 123, 123)运行

赞赏作者


如果觉得我的文章对你有用,请随意赞赏























# * 后面的参数可以不输入,也可以输入多个
def howlong(first, *other):
print( 1 + len(other))
howlong(123, 213, 123, 123)


如果觉得我的文章对你有用,请随意赞赏
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。