# -*- 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

最新文章

  1. Nginx+PHP On windows
  2. 允许FTP用户登录并禁止Shell登录的方法
  3. 几种filter的比较
  4. Python 内置彩蛋
  5. 外表cms,内在wiki的系统anwiki
  6. GDUT 校赛02 dp回文串
  7. 使用SCP在命令行传输文件
  8. shell脚本中一些特殊符号
  9. void *memmove( void* dest, const void* src, size_t count );数据拷贝,不需要CPU帮助
  10. 【转载】如何用Maven创建web项目(具体步骤)
  11. Ubuntu shortcuts
  12. 14.TCP的坚持定时器和保活定时器
  13. web微信开发前期准备最新详细流程
  14. Java基础-方法(07)
  15. 前端加密传输 crypto-js AES 加密和解密
  16. 软件测试之Soot
  17. Python中的sys.path.append()
  18. [W3bSafe]Metasploit溢出渗透内网主机辅助脚本
  19. leetcode961
  20. AOP编程的学习总结

热门文章

  1. Vue API(directives) 自定义指令
  2. Redis配置与安装
  3. redis 系列20 服务器下
  4. 如何判断DataSet里有多少个DataTable
  5. java.lang.OutOfMemoryError: unable to create new native thread问题排查以及当前系统最大进程数量
  6. python常用脚本以及问题跟踪
  7. 痞子衡嵌入式:串口调试工具Jays-PyCOM诞生记(1)- 环境搭建(Python2.7.14 + pySerial3.4 + wxPython4.0.3)
  8. SSH隧道:端口转发功能详解
  9. SpringBoot系列——MyBatis整合
  10. 第36章 扩展授权 - Identity Server 4 中文文档(v1.0.0)