Creating dictionary in Python using a variable

前端 未结 0 1446
被撕碎了的回忆
被撕碎了的回忆 2021-01-17 03:46

Using following method to create a dictionary:

>>> dict(name = \'Joe\')
{\'name\': \'Joe\'}

What if I already had a variable n

相关标签:
回答
  • 消灭零回复
提交回复
热议问题