摘要: 1. *args 用来将参数打包成tuple给函数体使用 def fun1(*args): print(args) print(type(args)) fun1(1, 2, 3)# 输出 (1, 2, 3)<class 'tuple'> 2. *kwargs 用来将关键字参数打包成字典给函数体使用 阅读全文
posted @ 2020-09-11 11:01 c++11 阅读(240) 评论(0) 推荐(0) 编辑