dict no attribute has_key

在python3中抛弃了字典has_key()的方法

改为__contains__()

使用方法完全一样

猜你喜欢

转载自blog.csdn.net/benben0729/article/details/80511555