2016-08-04 76 views
-1

我試圖通過Windows命令提示符下一個參數傳遞給Python,但我遇到了以下錯誤:傳遞參數到Python腳本在Windows命令提示符

[Errno 22] Invalid argument

命令提示符代碼:

C:\Python27\python.exe "C:\Users\Apples\Documents\ArcGIS\Grapes\Blueberry_Cobbler\recipe.py C:\Users\Apples\Documents\ArcGIS\Grapes\Blueberry_Cobbler\input1.txt"

+0

嘗試'C:\ Python27 \ python.exe「C:\ Users \ Apples \ Documents \ ArcGIS \ Grapes \ Blueberry_Cobbler \ recipe.py」「C:\ Users \ Apples \ Documents \ ArcGIS \ Grapes \ Blueberry_Cobbler \ input1.txt「' – Caw

+0

謝謝你回來,可悲的是這沒有奏效,仍然拋出一個錯誤。 –

+0

同樣的錯誤? – Caw

回答

0

你缺少這兩種關閉和打開"的:

C:\Python27\python.exe 
"C:\Users\Apples\Documents\ArcGIS\Grapes\Blueberry_Cobbler\recipe.py" 
"C:\Users\Apples\Documents\ArcGIS\Grapes\Blueberry_Cobbler\input1.txt" 
相關問題