python的字典支持键是数字。
示例如下:
d = {}
d[1] = 0
print(d)
# {1: 0}
python dict.py
猜你喜欢
转载自blog.csdn.net/weixin_42193179/article/details/88224630
今日推荐
周排行