开发者社区 问答 正文

python不定长参数的语法是怎么写的?

python不定长参数的语法是怎么写的?

展开
收起
游客fbdr25iajcjto 2021-10-31 21:45:06 546 分享 版权
1 条回答
写回答
取消 提交回答
  • def function name([formal_args,] *var_args_tuple ): "函数_文档字符串" function_suite return [expression]

    2021-10-31 21:46:19
    赞同 展开评论