1
如果我手动将它粘贴到命令提示符中,它可以工作,但如果我从python运行它,我会得到The filename, directgory name, or volume label syntax is incorrect
。从Python启动VS2008构建
os.system('%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86')
os.system('devenv Immersica.sln /rebuild Debug /Out last-build.txt')
见https://docs.python.org/2/reference/lexical_analysis.html#string-literals怎么样的了投票,因为我回答了这个问题:) – 2008-12-11 22:18:30