摘要: 问题记录 1、在for循环下创建线程,会一次性全部创建,消耗内存 import threading def test(): print('test') for i in range(1000); t = threading.Thread(target=test) # 此时已经新建了1000个线程对象 阅读全文
posted @ 2019-10-15 16:41 向往前方 阅读(1119) 评论(0) 推荐(0) 编辑