How to access command line arguments in python?


import sys

sys.argv[1:]#will give you a list of arguments (not including the name of the python file)

No comments:

Post a Comment