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



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

[Errno 22] Invalid argument

命令提示符代码:

C:Python27python.exe "C:UsersApplesDocumentsArcGISGrapesBlueberry_Cobblerrecipe.py C:UsersApplesDocumentsArcGISGrapesBlueberry_Cobblerinput1.txt"

您同时缺少关闭和打开"的:

C:Python27python.exe 
"C:UsersApplesDocumentsArcGISGrapesBlueberry_Cobblerrecipe.py" 
"C:UsersApplesDocumentsArcGISGrapesBlueberry_Cobblerinput1.txt"

相关内容

  • 没有找到相关文章

最新更新