# python 串口终端 **Repository Path**: goost/python-serial-terminal ## Basic Information - **Project Name**: python 串口终端 - **Description**: 简单的串口终端,支持终端颜色 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2021-11-08 - **Last Updated**: 2026-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python 串口终端 #### 介绍 简单的串口终端,支持终端颜色,接收数据自动添加时间戳。 #### 软件架构 python3 #### 安装教程 需要安装依赖包: ``` pip install colorama pip install pyserial ``` #### 使用说明 1. 直接运行 ``` python3 com.py ``` 2. 根据提示输入串口名(Windows 输入 `COM3` 或 `3`,Linux 输入 `ttyUSB0`,程序会自动补全前缀) 3. 输入 `exit()` 优雅退出程序 功能特性: - 支持 Windows / Linux 跨平台 - 接收数据自动添加时间戳,空行不打印时间戳 - 输入 `exit()` 退出程序 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)