python中**dict

来源:互联网 发布:网络分离器怎么用 编辑:程序博客网 时间:2024/05/22 02:08

是解包的意思

dic = {'a':1,'b':2}print '{a},{b}'.format(**dic)

结果是1,2

0 0