【笔记】AttributeError: ‘collections.OrderedDict‘ object has no attribute ‘has_key‘:dict( )取消了.has_key()

if X.has_key(XXX):
修正为:
if XXX in X:

猜你喜欢

转载自blog.csdn.net/nyist_yangguang/article/details/120855961