Thank a lot
t.setDaemon(True)
t.start()
--
I love python!
My Blog: http://www.donews.net/limodou
--
import thread
from time import sleep
import sys
def t1():
try:
i=0
while 1:
print i+1
i += 1
sleep(1)
except SystemExit:
pass
thread.start_new_thread(t1, ())
sleep(3)
This Question was also asked in Python-chinese .
First of all, it's "True" and "False" in Python, not TRUE
and FALSE.
Secondly, the answer to the question was in the previous
message where "limodou" told you about this in the first
place. Go back and read it again...
-Peter