Sending arguments from Batch file to Python script

前端 未结 1 1877
庸人自扰
庸人自扰 2020-12-05 21:35

I\'m running Python 3.2 on Win XP. I run a python script thru a batch file via this:

C:\\Python32\\python.exe test.py %1

%1 is an a

相关标签:
1条回答
  • 2020-12-05 22:08

    your_script.bat:

    set VAR_1=this
    set VAR_2=that
    
    python your_script.py %1 %VAR_1% %VAR_2%
    
    0 讨论(0)
提交回复
热议问题