AttributeError: 'dict' object has no attribute 'interitems'

看《機器學習實戰》時,運行2-1的程序,報錯AttributeError: 'dict' object has no attribute 'interitems',查了一下百度說是由於python2和python3存在兼容性問題要把iteritems改爲items就ok了。python 問題語句:機器學習 sortedClassCount = sorted(classCount.iteritems
相關文章
相關標籤/搜索