使用python调用cmd subprocess

import os

os.chdir("E:")

os.system('md ddd')

dir ="E:\\pingan\\VoiceRecognize\\opensmile\\opensmile-2.3.0\\opensmile-2.3.0\\bin\\Win32"

os.chdir(dir)

os.system('SMILExtract_Release -C E:\pingan\VoiceRecognize\opensmile\emobase_csv.conf -I E:\pingan\\audioEmotion_gui\\2017-08-22_13_02_16.wav -O ..\:Moaaa_feature.csv')



http://blog.chinaunix.net/uid-26000296-id-4461522.html

StackOverflow

https://stackoverflow.com/questions/89228/calling-an-external-command-in-python

https://stackoverflow.com/questions/636561/how-can-i-run-an-external-command-asynchronously-from-python


Toturial

http://www.dreamsyssoft.com/python-scripting-tutorial/shell-tutorial.php

https://docs.python.org/2/library/subprocess.html#module-subprocess

你可能感兴趣的:(使用python调用cmd subprocess)