页: 1 我试图这样做:
myStr = " (insert "%g") " %i
subprocess.Popen(["emacs", "--batch", "+83:28", "md.mdp", "--eval",
eval("myStr"), "-f", "save-buffer", "--kill"],
stdout=subprocess.PIPE).wait()
并如上:
subprocess.Popen(["emacs", "--batch", "+83:28", "md.mdp", "--eval",
" (insert "%g") " %i, "-f", "save-buffer", "--kill"],
stdout=subprocess.PIPE).wait()
并如上:
subprocess.Popen(["emacs", "--batch", "+83:28", "md.mdp", "--eval",
(" (insert "%g") " %i), "-f", "save-buffer", "--kill"],
stdout=subprocess.PIPE).wait()
但是,这些工作都没有。 Can 你们帮助我让它right?
而且——情况是这样——当<代码>系统(“bashtor”)时,是否有t <代码>wait?
http://www.ohchr.org。
它是为某一参数的不同价值进行计算机模拟的。 它复制每个跑道的基多塔迪尔,然后修改参数档案(标明价值),然后进行模拟和回击。
This doesn t produce error - but also doesn t insert the value of i
in the md.mdp
:
myStr = " (insert "%g") " %i
subprocess.Popen(["emacs", "--batch", "+83:28", "md.mdp", "--eval",
myStr, "-f", "save-buffer", "--kill"],
stdout=subprocess.PIPE).wait()
也没有帮助:
myStr = " (insert \"%g\") " %i
以下变量也不加一字:
subprocess.Popen(["emacs", "--batch", "+83:28", "md.mdp", "--eval",
" (insert "%g") " %i, "-f", "save-buffer", "--kill"],
stdout=subprocess.PIPE).wait()
subprocess.Popen(["emacs", "--batch", "+83:28", "md.mdp", "--eval",
(" (insert "%g") " %i), "-f", "save-buffer", "--kill"],
stdout=subprocess.PIPE).wait()