开发者社区 问答 正文

python函数**parameter用法的使用方式是什么?

python函数**parameter用法的使用方式是什么?

展开
收起
游客fbdr25iajcjto 2021-11-04 18:50:00 1096 分享 版权
1 条回答
写回答
取消 提交回答
  • def demo(**p); for item in p.items(); print(item) demo(x=1,y=2,z=3) ('y',2) ('x',1) ('z',3)

    2021-11-04 18:59:33
    赞同 展开评论