摘要:
一、Hadoop提供的Shell命令完成相同任务:1.在本地Linux文件系统的“ / home / hadoop /”目录下创建一个文件txt,里面可以随意输入一些单词.2.在本地查看文件位置(ls)3.在本地显示文件内容 cd / home / hadoop / touch test.txt c 阅读全文
摘要:
sep=''',.?!":''' exclude={'the','and','of','to'} for c in sep: news=news.replace(c,' ') wordList=news.lower().split() wordDict={} wordSet=set(wordList)-exclude for w in wordSet: wordDict[w... 阅读全文