Created
September 30, 2015 16:56
-
-
Save saltlakeryan/3deeea7f8c5f8f627614 to your computer and use it in GitHub Desktop.
http://www.tutorialspoint.com/python/python_command_line_arguments.htm (command line arguments in python)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
print 'Number of arguments:', len(sys.argv), 'arguments.' | |
print 'Argument List:', str(sys.argv) | |
print 'First Argument: ', sys.argv[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment