开发者

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

开发者 https://www.devze.com 2023-04-12 19:34 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Read words from .txt, and count for each words
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

精彩评论

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