本文介绍了python *运算符的专有名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
与function(*args)一样,运算符*的正确名称是什么?打开包装,解压缩,还有其他东西吗?
What is the correct name for operator *, as in function(*args)? unpack, unzip, something else?
推荐答案在Ruby和Perl 6中,这被称为"splat",我认为那些社区的大多数人都会明白您的意思.
In Ruby and Perl 6 this has been called "splat", and I think most people from those communities will figure out what you mean if you call it that.
Python教程使用短语解压缩参数列表" ",内容冗长且具有描述性.我在Python中还没有听说过其他特殊名称.
The Python tutorial uses the phrase "unpacking argument lists", which is long and descriptive. I haven't heard any other particular name for it in Python.
更多推荐
python *运算符的专有名称?
发布评论