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