How to assign “else” key with an explicit value in python dictionary?

前端 未结 0 1674
隐瞒了意图╮
隐瞒了意图╮ 2021-02-07 04:58

The python dictionary must explicitly indicate the key and value on a one-to-one basis. How can I construct a dictionary like this

d = {1: 1, 2: 2:, 3: 3, any other

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