这是因为python3 删除了has_key()方法
可以使用新的方法:
if key in dict:
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021
这是因为python3 删除了has_key()方法
可以使用新的方法:
if key in dict: