newbie question...

r rt8396 at gmail.com
Fri Dec 12 14:41:21 EST 2008


i was just giving you an example from my TextEditor.py script.

this is how arg works
lets say you have a script named MyScript.py
---
import sys
print sys.argv
---
call the script with arguments
> MyScript.py 99 100
['C:\\Python25\\MyScript.py', '99', '100']


int(sys.argv[1]) -> 99



More information about the Python-list mailing list