惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
D
DataBreaches.Net
U
Unit 42
P
Proofpoint News Feed
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
博客园 - Franky
博客园_首页
IT之家
IT之家
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志

噜啦 - 函数

函数变量的作用域 - 噜啦 函数变量的作用域 - 噜啦 函数的可变长参数 - 噜啦 函数的定义和常用操作 && 课堂练习 - 噜啦 函数的定义和常用操作 && 课堂练习 - 噜啦
函数的可变长参数 - 噜啦
博主: 噜啦 · 2019-09-18 · via 噜啦 - 函数

代码

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

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

howlong(123, 213, 123, 123)

运行

赞赏作者

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