Command Line Arguments : Command Line « Development « Python






Command Line Arguments

Command Line Arguments


#For instance the following output results from running "python demo.py one two 
#three" at the command line:

import sys
print sys.argv


           
       








Related examples in the same category

1.Echo command line argumentsEcho command line arguments
2.Collect command-line options in a dictionaryCollect command-line options in a dictionary