Formatting dict keys: AttributeError: 'dict' object has no attribute 'keys()'

前端 未结 4 1506
[愿得一人]
[愿得一人] 2021-01-03 01:58

What is the proper way to format dict keys in string?

When I do this:

>>> foo = {\'one key\': \'one value\', \'second key\': \'second value\         


        
4条回答
提交回复
热议问题