在Windows命令提示符下将参数传递给Python脚本

时间:2016-08-04 13:36:36

标签: python windows parameter-passing command-prompt arcpy

我试图通过Windows命令提示符将参数传递给python,但遇到以下错误:

[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"

1 个答案:

答案 0 :(得分: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"