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

推荐订阅源

B
Blog RSS Feed
J
Java Code Geeks
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
L
LangChain Blog
腾讯CDC
Y
Y Combinator Blog
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
MyScale Blog
MyScale Blog
博客园 - Franky
IT之家
IT之家
博客园_首页

噜啦 - 函数

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

代码

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

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

howlong(123, 213, 123, 123)

运行

赞赏作者

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