dic = {‘a‘:123,‘b‘:456} print("{0}:{1}".format(*dic))
a:b
2020-05-08
点format方式输出星号字典的值是键
原文:https://www.cnblogs.com/hany-postq473111315/p/12846982.html