The argv attribute of the sys module is a list : Command line : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Command line »

 

The argv attribute of the sys module is a list


The first item in the argv list is the path to the module; 
the rest is made up of arguments passed in. 


print sys.argv
print sys.argv[1]



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Command line