newbie question...
trfilmographer at gmail.com
trfilmographer at gmail.com
Fri Dec 12 13:55:14 EST 2008
On Dec 12, 12:59 pm, r <rt8... at gmail.com> wrote:
> yes, but your script will need to know hoe to handle this.the
> following will open a file who's name was passed to the script
>
> if len(sys.argv) > 1:
> try:
> open_file(fname=sys.argv[1])
> except:
> pass
ah, ok. now what if I want the variable to be an integer that I
send? for instance if I send 99 to the program, it is picking it up
as a string instead of an integer value. How do I handle this with
python??
More information about the Python-list
mailing list