摘要: 当我在一次写下如下代码时,报错AttributeError: 'dict' object has no attribute 'has_key': if not my_dict.has_key(my_key): 当时真的是一脸懵逼,我在Python2的时候一直这样写的,为什么会错呢? 后来经过查询文档 阅读全文
posted @ 2023-04-11 18:16 He_LiangLiang 阅读(94) 评论(0) 推荐(0) 编辑