李宏毅老師機器學習作業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]))
相關文章
相關標籤/搜索