综合练习:词频统计
摘要:file=open('news.txt','r',encoding='utf-8') f=file.read() f.close() sep=''',.!?''' for c in sep: news=news.replace(c,'') wordList = news .lower().split() wordDict={} for w in wordLis...
阅读全文
posted @ 2018-03-27 17:43
posted @ 2018-03-27 17:43
posted @ 2018-03-22 22:00
posted @ 2018-03-20 16:19
posted @ 2018-03-14 21:35
posted @ 2018-03-06 21:06