Flag control variable

luke.geelen at gmail.com luke.geelen at gmail.com
Tue Feb 11 16:18:40 EST 2014


Would it be possible to make an 
int(sys.argv[1]) 
Not needed and set value 0 ( or in another script 1)
For example
a = int(sys.argv[1]) 
b = int(sys.argv[2])
c = int(sys.argv[3]) 
And I run
Python ./script.py 2 3

It just set c automaticly to 0 or 1

Luke

(PS thanks for the quick help)



More information about the Python-list mailing list