What's the difference between .get() and .get

前端 未结 0 1878
心在旅途
心在旅途 2020-12-20 18:50

I have a dictionary: keys are strings, values are integers.

dic = {\'a\':10, \'b\':20, \'c\': 30}

To get the key with a higher value \'c\' as

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