python2 与 python3 不兼容问题总结【持续更新】

1.python3 下报错:’dict’ object has no attribute ‘iteritems’ python2 下为 .iteritems() python3 下为 .items()python a={'1':1,'2':2} a.items() Out[26]: dict_items([('2', 2), ('1', 1)]) 2.python3下报错.TypeError: ‘
相关文章
相关标签/搜索