解包:*args
如*(a, b)会把元组(a, b)解为两个参数a和bddt的时候用到过
list = (a. b)
print(*list)
>> a, b
posted on 2020-03-14 12:54 芦荟~lh 阅读(124) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 芦荟~lh Powered by .NET 8.0 on Kubernetes