What does %* mean?
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.
精彩评论