2024年9月29日
摘要: 1 def search_port(port_name): 2 # 获取连接电脑的设备的所有端口信息 3 port_list = list(comports()) 4 print("port_list",port_list) 5 6 if len(port_list) > 0: 7 # 遍历所有端口 阅读全文
posted @ 2024-09-29 20:18 R0mrnel 阅读(65) 评论(0) 推荐(0)