hi~~~

djw dwelch91 at nospam.attbi.com
Sun Aug 18 22:27:44 CEST 2002


laotseu wrote:
> ÙâÙâºõºõ wrote:
> 
>> i am learning python!
>>
>>
> 
> 
> try this one :
> 
> # file useless_msg.py
> def useless_msg():
>     print 'hi, I'm learning Python !'
> 
> def main():
>     while(1)
>         useless_msg()
> 
> if __name__ == '__main__':
>     main()
> 
> 
> $ python useless_msg.py
> 
> 
> 
> laotseu
> 

# I would try this instead...


# file useless_msg.py
def useless_msg():
     print "hi, I'm learning Python !"

def main():
     while(1):
         useless_msg()

if __name__ == '__main__':
     main()


# as it actually works...  :-)

D




More information about the Python-list mailing list