# -*- coding: utf-8 -*-
"""
Created on Thu Sep 29 10:42:29 2011
@author: Joey
"""
import time
import thread
def func():
for i in range(5):
print 'func'
time.sleep(1)
thread.exit()
thread.start_new(func, ())
我执行以上代码,只能打印一次“func”,应该是5次,熟悉python的朋友帮看看,谢谢