python中多线程

多线程基本概念: 线程: 进程中的每个子任务,不能独立存在,CPU执行的最小单位 进程: 独立的所有子任务的集合 即: 多个线程 组成 进程 import threading print([x for x in range(9)]) thread = threading.current_thread() #返回当前的线程变量 thread.setName('主线程') print('thread
相关文章
相关标签/搜索