紧急求助,python中的字典使用汉字作为key,访问出错

2025-03-10 23:37:40
推荐回答(1个)
回答1:

中文可以呀!看下面。

myDict = {'你':10,'我':20}

print(myDict['你'])