开发者

How to find the number of occurrance of each word in a file using python [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Read words from .txt, and count for each words

Python script to find word frequencies of a given document

There is one file having some data in it. I would like to get each and every word without repetition and want to get number of occurance 开发者_JAVA百科of that word. How do I write a python program for this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜