DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python sys.argv exception
try: filename = sys.argv[1] except IndexError: print "You did not specify a file" sys.exit(1)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#exception
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit