December 17, 2017

How to use argv in Python

❑ argv is available through sys library of Python.

<argv.py>
import sys

print sys.argv[1]
print sys.argv[2]
print sys.argv[3]+sys.argv[4]
print type(sys.argv[5])

argv in Python