由于os.popen
被替换subprocess.popen
,我想知道我将如何转换
os.popen('swfdump /tmp/filename.swf/ -d')
到subprocess.popen()
我试过:
subprocess.Popen("swfdump /tmp/filename.swf -d")
subprocess.Popen("swfdump %s -d" % (filename)) # NOTE: filename is a variable
# containing /tmp/filename.swf
但我想我没有正确地写出来。任何帮助,将不胜感激。谢谢