柳凯的第二次作业
这个作业属于哪个课程 | https://edu.cnblogs.com/campus/zjlg/rjjc/ |
---|---|
这个作业的目标 | 实现一个命令行文本计数统计程序。能正确统计导入的纯英文txt文本中的字符数,单词数,句子数。 |
姓名-学号 | 柳凯-2022329301149 |
码云地址:https://gitee.com/tudou-garden-little-confusion/second-assignment
一、介绍
本程序用于统计纯英文文本文件中的字符数、单词数、句子数、代码行、空行和注释行数。
wc.py: 主要代码文件,包含文本计数的实现。
README.md: 项目文档,提供使用说明和功能介绍。
test_wc.py: 单元测试文件,用于验证各个功能的正确性。
二、使用
1.下载程序文件夹 2.Win+R打开命令运行框输入cmd打开命令提示符窗口 3.使用 cd 命令导航到包含 wc.py 的目录。4.运行程序进行统计。
三、测试文档
There are many students in middle school wear the glasses, and many of them were wearing the glasses since little. We have to protect our eyes, prevent them from the short-sightedness. We should keep a good sitting posture, never read the books too closely. We’d better have a short break every hour of reading, close eyes or look at the distance. We should do the eye exercises every day. In the evening, we also shouldn’t read while we are lying. And more important, we shouldn’t spend hour and hour starring at our cellphone. We all should protect our eyes.
四、感悟
通过本次课程我学到了如何使用python和命令指令,通过不断查阅资料学习获得了很多的知识和如何编写代码。让我对课程有了更新的感悟