import

resnak resnak at mail.com
Sun Aug 20 13:25:00 EDT 2006


Try putting it in C:\Python24\Lib\site-packages instead.

figo_wei01 at 126.com wrote:

>bugnthecode 写道:
>
>> How are you trying to import it? Is it in the same directory as your
>> other script? If not is your python path set correctly?
>>
>> When importing a module that you have written you exlude the .py
>> extension. You should be using:
>> import hello
>>
>> Hope that helps,
>> Will
>
>i am on a windows platform. i have written scrip named 123.py.  it can
>be run. ok i save it to C:\Python24 ,exactly the same dir where python
>works.  but " import 123" doesnt work.




More information about the Python-list mailing list