From 6ebdd962f70dc6d02f10d00968761b671e0ea702 Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Mon, 1 Sep 2025 07:30:34 +0000 Subject: [PATCH] Add README.md --- README.en.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 README.en.md create mode 100644 README.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..c65ac6b --- /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 0000000..701b146 --- /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 -- Gitee