摘要: 字典的键值是"只读"的,所以不能对键和值分别进行初始化,即以下定义是错的: >>> dic = {} >>> dic.keys = (1,2,3,4,5,6) Traceback (most recent call last): File "<stdin>", line 1, in <module> 阅读全文
posted @ 2020-11-27 19:54 富贵儿- 阅读(318) 评论(0) 推荐(0) 编辑