李宏毅老师机器学习作业hw0

content=open("words.txt").read() array=content.split(" ") orderindex=0 for i in range(len(array)): if array.index(array[i])==i: print("%s %s %s"%(array[i],orderindex,array.count(array[i]))
相关文章
相关标签/搜索