# ruanjian2 **Repository Path**: fanfandd/ruanjian2 ## Basic Information - **Project Name**: ruanjian2 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-29 - **Last Updated**: 2024-10-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 软件基础第二次作业 #### 项目介绍 实现一个命令行文本计数统计程序。能正确统计导入的纯英文txt文本中的字符数,单词数,句子数。 #### 用法 1.统计字符数 python wc.py -c test.txt 2.统计单词数 python wc.py -w test.txt 3.统计句子数 python wc.py -s test.txt #### 拓展用法 统计代码行、空行、注释行 python wcplus.py -p test.py #### 文件列表及说明 1. v0.1 空项目 2. v0.2 项目完成基础功能 ![输入图片说明](v0.2/v0.2.png) 3. v0.3 项目完成扩展功能 ![输入图片说明](v0.3.png) #### 单元测试 1. 实现基本功能的测试 ![输入图片说明](unit/unitf.png) 2. 单元测试包含更多的测试用例 ![输入图片说明](unitplus/unitplus.png) 3. 使用选用的IDE附带的工具进行performance test ![输入图片说明](per/per1.1.png) ![输入图片说明](per/per1.2.png) ![输入图片说明](per/per2.png)