go top

positional argument

  • 位置参数:在函数调用中,按照参数在函数定义中的顺序传递参数的方式。与之相对的是关键字参数(keyword argument),它是通过指定参数名来传递参数的方式。在使用时,根据具体情况选择使用哪种方式更加清晰易懂。

网络释义

短语

positional-argument 定位参数

positional-argument-list 定位参数列表

excess positional argument 扩展位置参数

双语例句权威例句

  • Return a new dictionary initialized from an optional positional argument or from a set of keyword arguments.

    返回新的可选位置参数关键字参数初始化字典

    youdao

  • Otherwise, the positional argument must be a sequence, a container that supports iteration, or an iterator object.

    如果位置参数一个映射对象,则返回像映射对象一样的键值映射

    youdao

  • Provide a read-only property with the same name as each positional argument, but change the case to differentiate between them.

    提供每个位置性引数同名唯读属性变更大小写区分它们。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定