sys.argv: import sys
# -*- coding:gb2312 -*- #!/usr/bin/python # Filename: using_sys.py import sys print 'The command line arguments are:' for i in sys.argv: print i print '\n\nThe PYTHONPATH is', sys.path, '\n' ''' D:\learnProg\python\exercise>python using_sys.py q w e r ttt The command line arguments are: using_sys.py q w e r ttt The PYTHONPATH is ['D:\\learnProg\\python\\exercise', 'C:\\Python27\\... '''

 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号