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: ‘
相關文章
相關標籤/搜索