P2转P3'dict' object has no attribute 'has_key'
生活随笔
收集整理的这篇文章主要介绍了
P2转P3'dict' object has no attribute 'has_key'
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
if not self.__dict__.has_key("_mask"):
改为
if "_mask" not in self.__dict__:
总结
以上是生活随笔为你收集整理的P2转P3'dict' object has no attribute 'has_key'的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Java 网络实例一(获取指定主机的IP
- 下一篇: golang中defer语句使用小结