osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flag control variable


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)