标签:模块 progress read style port bsp process std str
import subprocess # popen 打开进程文件指针 obj = subprocess.Popen("dir",shell=True,stdout=subprocess.PIPE) #pipe管道的意思 subprocess子进程 #stdout 标准输出 # stdout=subprocess.PIPE有子进程通过管道输出到主进程 print(len(str(obj.stdout.read(),"gbk")))
标签:模块 progress read style port bsp process std str
原文地址:https://www.cnblogs.com/TKOPython/p/12408271.html