戳人痛处

导航

2021年12月8日 #

[记]Python获取控制台输出的方法

摘要: 使用库 os、subprocess 1.使用subprocess库 非实时读取 import subprocess # xe = subprocess.run("iperf3 -c 127.0.0.1 -p 5668 -J",stdout=subprocess.PIPE) xe = subproce 阅读全文

posted @ 2021-12-08 19:56 戳人痛处 阅读(3263) 评论(0) 推荐(0) 编辑