How to import new Modules?

DeepBleu DeepBleu at DeepBleu.org
Wed Jan 30 12:09:42 EST 2002


use:
>> import sys
then use as:
>> a=sys.argv[n]
where n is the index.
or use:
>> from sys import argv
then use as:
>> a=argv[n]
where n again is the index of the item in the list.
DeepBleu

"Daniel Lewendel" <leva4ever at t-online.de> wrote in message
news:a397o5$vb9$02$1 at news.t-online.com...
> Hi there,
>
> I want to import the SYS Module to use the ARGV function.
> How to do this? The Documentation is a little bit complex for a German
Human
> like me...   :)
>
> The Background is that I have changed School and now i have to learn
Python
> by my self. I use it on an Windows XP System and in school it works on an
> Unix system (SUSE Linux i guess). Can I use the Programms worked out at
home
> at school without any problems?
>
> thanks a lot for answer - Daniel
>
>





More information about the Python-list mailing list