赞
踩
报错:TypeError: ‘range’ object doesn’t support item deletion
解决办法:将trainingSet的数据类型改为‘list’,即trainingSet=list(range(50))