社区
.NET技术其他语言
帖子详情
def myfunction(*param, base=3)
Eimy-f
2020-09-09 09:10:28
def myfunction(*param, base=3) 这里的*是啥意思呀??
...全文
4970
3
打赏
收藏
def myfunction(*param, base=3)
def myfunction(*param, base=3) 这里的*是啥意思呀??
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
weixin_45874433
2020-09-10
打赏
举报
回复
谢谢!各种各样!
threenewbee
2020-09-09
打赏
举报
回复
可以传递任意(不定)个参数,类似C语言的 void myfunction(void * ...)
wanghui0380
2020-09-09
打赏
举报
回复
python 滴不在python版问,咋弄到net版了 既然在net里问,我们就用neter可以听懂的话讲,*param 这种东西python 代表任意变量组成的元组。换成neter能理解的就是param object[] 这个东西(任意数量参数)
Scala与Java语言的差异
1、源文件后缀名 Java:.java Scala:.scala 2、变量 Java: int
pa
ram
1 = 100; int
pa
ram
2 Scala: 格式: var VariableName : ... var
pa
ram
1: String = "Hello Scala" ... var
pa
ram
2 = "hello scala"...
Python核心丨自定义函数
def
my_func(message): print('Get a message:{}'.format(message)) # 调用函数my_func() my_func('Hello World') # 输出 Get a message: Hello World
def
是函数的声明; my_func是函数的名称; 括号里的message...
karate
Embedded Expressions | Json
Pa
th | X
Pa
th | Karate Expressions Variables
def
| text | table | yaml | csv | string | json | xml | xmlstring | bytes | copy Actions assert | print | replace | get | set | ...
《Python自然语言处理(第二版)-Steven Bird等》学习笔记:第04章 编写结构化程序
[(0, 'I'), (1, 'turned'), (2, 'off'), (3, 'the'), (4, 'spectroroute')] text = nltk . corpus . nps_chat . words ( ) cut = int ( 0.9 * len ( text ) ) #分割数据,90%的数据来“训练”一个...
Google JavaScript Style Guide
Google JavaScript Style Guide Table of Contents 1 Introduction1.1 Terminology notes1.2 Guide notes2 Source file basics2.1 File name2.2 File encoding: UTF-82.3 Special characters3 Source file structure...
.NET技术其他语言
1,978
社区成员
12,450
社区内容
发帖
与我相关
我的任务
.NET技术其他语言
.NET技术 其他语言讨论
复制链接
扫一扫
分享
社区描述
.NET技术 其他语言讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章