开发者

What does %* mean?

开发者 https://www.devze.com 2023-02-10 08:20 出处:网络
I installed pychecker an开发者_高级运维d noticed the batch file I should use to run pychecker has these entries:

I installed pychecker an开发者_高级运维d noticed the batch file I should use to run pychecker has these entries:

C:\Python26\python.exe

C:\Python26\Lib\site-packages\pychecker\checker.py %*

What does the second line mean?


What you are seeing isn't Python code. It is a Windows command script.

%* means pass all the arguments that you passed to the batch file.


%* is the arguments that you pass to the batch file. What ever arguments you pass to the batch file from the command line is in turn passed to checker.py.

If you call

checker.bat myfile.py

then the lines in the batch file will be replaced as

C:\Python26\python.exe

C:\Python26\Lib\site-packages\pychecker\checker.py myfiile.py

You can find more details here


It doesn't mean anything to python, it is being expanded by the shell (cmd.com). I think it's the arguments list passed to the batch file.

0

精彩评论

暂无评论...
验证码 换一张
取 消