Python2有has_key()方法,Python3以后删除了has_key()方法!
Python3方法更改为:
if key1 in adict:
Python2有has_key()方法,Python3以后删除了has_key()方法!
Python3方法更改为:
if key1 in adict:
本文标题:‘dict’ object has no attribute &
本文链接:https://www.haomeiwen.com/subject/xjphnxtx.html
网友评论