点format方式输出星号字典的值是键

dic = {'a':123,'b':456}
print("{0}:{1}".format(*dic))
a:b

2020-05-08

原文地址:https://www.cnblogs.com/hany-postq473111315/p/12846982.html