python中多線程

多線程基本概念: 線程: 進程中的每個子任務,不能獨立存在,CPU執行的最小單位 進程: 獨立的所有子任務的集合 即: 多個線程 組成 進程 import threading print([x for x in range(9)]) thread = threading.current_thread() #返回當前的線程變量 thread.setName('主線程') print('thread
相關文章
相關標籤/搜索