diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..c65ac6b039cd565395b8ce97cd51c9fd925f7991 --- /dev/null +++ b/README.en.md @@ -0,0 +1,45 @@ +# Python Word Count + +This is a simple Python project for counting the number of words in a text file. + +## Features + +- Counts the number of words in a specified text file. +- Supports multiple file encoding formats. +- Can ignore case and punctuation. + +## Usage + +1. Clone the repository to your local machine: + + ```bash + git clone https://gitee.com/lxynb/python-Word-Count.git + ``` + +2. Run the program: + + ```bash + python word_count.py + ``` + +## Example + +Assume there is a text file named `example.txt` with the following content: + +``` +Hello, world! Hello, Python! +``` + +After running the program, the output might be: + +``` +Word count: 4 +``` + +## Contributions + +Feel free to submit issues and pull requests to improve this project. + +## License + +This project uses the MIT License. For details, please check the [LICENSE](LICENSE) file. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..701b14671899734f28d00e3130686023b3de979e --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Python Word Count + +这是一个简单的 Python 项目,用于统计文本文件中的单词数量。 + +## 功能 + +- 统计指定文本文件中的单词数量。 +- 支持多种文件编码格式。 +- 可以忽略大小写和标点符号。 + +## 使用方法 + +1. 克隆仓库到本地: + + ```bash + git clone https://gitee.com/lxynb/python-Word-Count.git + ``` + +2. 运行程序: + + ```bash + python word_count.py <文件路径> + ``` + +## 示例 + +假设有一个名为 `example.txt` 的文本文件,内容如下: + +``` +Hello, world! Hello, Python! +``` + +运行程序后,输出结果可能如下: + +``` +单词数量: 4 +``` + +## 贡献 + +欢迎提交 Issue 和 Pull Request 来改进这个项目。 + +## 许可证 + +本项目采用 MIT 许可证。详情请查看 [LICENSE](LICENSE) 文件。 \ No newline at end of file