摘要: 1.方式一,使用多线程import thread,timedef my(a,b): for i in range(1,20): print iif __name__=='__main__': thread.start_new_thread(my,(1,2)) thread.start_new_thread(my,(2,2))example 1这个是有错误的,应为main程序会直接退出,导致sys.excepthook is missing 的错误。这个错误产生的原因是:系统已经产生错误但是没有被捕捉到,其实很好理解import thread,timedef my... 阅读全文
posted @ 2013-09-15 19:56 Epirus 阅读(265) 评论(0) 推荐(0) 编辑