python *运算符的专有名称? [英] proper name for python * operator?

查看:79
本文介绍了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 *运算符的专有名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆