首页 » python » 正文 python ‘dict’ object has no attribute ‘has_key’ 2020/03/11 | python | Zhiming Zhang | 暂无评论 | 539 views 这是因为python3 删除了has_key()方法 可以使用新的方法: if key in dict: About Latest Posts Zhiming ZhangSenior devops at Appannie一个奔跑在运维路上的胖子 Latest posts by Zhiming Zhang (see all) istio Ingress Gateways - 十一月 25, 2020 Istio VirtualService - 十一月 23, 2020 istio 组件 - 十一月 18, 2020 发表评论 取消 * *