Need help for a project in Pycharm...im newbie
Write a Python program that asks user for the name of an input file. The program then reads the content of the input file to find out the frequency of each word appears in the file and write the word frequency in alphabetical order to an output file called word_frequency.txt. Both the input and output file reside in the same directory with the Python file.
In this problem, a word is a sequence of alphanumeric and dash (“-“) characters. Furthermore, we ignore the case differences here, i.e. both “House” and “house” are considered as “house”.
In this problem, a word is a sequence of alphanumeric and dash (“-“) characters. Furthermore, we ignore the case differences here, i.e. both “House” and “house” are considered as “house”.
1 条评论
排序方式
日期
投票数
This isn't the correct forum for homework questions (it's for PyCharm related functionality, of which there is none in your question). Please try attending class (or ask in a forum that is created for helping with homework).
请先登录再写评论。