python打印电脑串口的信息
2024-08-29 13:33:36
# -*- coding:utf-8 -*- from serial.tools.list_ports import comports port_list = list(comports())
if len(port_list) == 0:
print('Not found Serial Ports')
else:
for i in range(len(port_list)):
print(port_list[i]) #print the serial port infomation
最新文章
- Nginx+PHP On windows
- 允许FTP用户登录并禁止Shell登录的方法
- 几种filter的比较
- Python 内置彩蛋
- 外表cms,内在wiki的系统anwiki
- GDUT 校赛02 dp回文串
- 使用SCP在命令行传输文件
- shell脚本中一些特殊符号
- void *memmove( void* dest, const void* src, size_t count );数据拷贝,不需要CPU帮助
- 【转载】如何用Maven创建web项目(具体步骤)
- Ubuntu shortcuts
- 14.TCP的坚持定时器和保活定时器
- web微信开发前期准备最新详细流程
- Java基础-方法(07)
- 前端加密传输 crypto-js AES 加密和解密
- 软件测试之Soot
- Python中的sys.path.append()
- [W3bSafe]Metasploit溢出渗透内网主机辅助脚本
- leetcode961
- AOP编程的学习总结
热门文章
- Vue API(directives) 自定义指令
- Redis配置与安装
- redis 系列20 服务器下
- 如何判断DataSet里有多少个DataTable
- java.lang.OutOfMemoryError: unable to create new native thread问题排查以及当前系统最大进程数量
- python常用脚本以及问题跟踪
- 痞子衡嵌入式:串口调试工具Jays-PyCOM诞生记(1)- 环境搭建(Python2.7.14 + pySerial3.4 + wxPython4.0.3)
- SSH隧道:端口转发功能详解
- SpringBoot系列——MyBatis整合
- 第36章 扩展授权 - Identity Server 4 中文文档(v1.0.0)