我是python的新手,正在尝试在Windows中从python运行一个exe软件。我写了下面的代码:fromsubprocessimportSTDOUT,Popen,PIPEcmd=r'C:\Users\lenaq\Desktop\sep\WATv16\TLWMA-0.09.exe'withopen('test.log','w')asf:p=subprocess.Popen(cmd,shell=True,stdin=PIPE,stdout=PIPE,stderr=PIPE)forciniter(lambda:p.stdout.read(1),''):sys.stdout.write(