摘要: 查看threading 有如下表达式_start_new_thread = thread.start_new_thread_allocate_lock = thread.allocate_lock_get_ident = thread.get_identThreadError = thread.errordel thread为什么要del thread,删除这个变量的目的是为什么?脚本运行完后应该会自动将变量清除。这样显式清除有什么特殊目的?如果不显式del会有什么后果?原来是目的是为了避免threading.thread的用法吧,为什么呢???因为有人喜欢dir(threading)然后看到 阅读全文
posted @ 2013-06-14 09:52 践道者 阅读(258) 评论(0) 推荐(0) 编辑