代码140行 修改为: if type(i) <>list:#增加 continue#增加 voteLabel=i[2] classCount[voteLabel]=classCount.get(voteLabel,0)+1