摘要:
# 一些进程相关的函数 import multiprocessing import threading import os # 设置创建进程的模式: # fork 创建进程的时候会拷贝整个start启动进程之前的所有资源,也可以通过参数去传递。它是unix下的 # spawn 该模式是windows 阅读全文
posted @ 2022-01-21 15:46
看一百次夜空里的深蓝
阅读(175)
评论(0)
推荐(0)
摘要:
1 # 线程 2 # 1.Thread 3 import threading 4 def func(a,b): 5 pass 6 t1 = threading.Thread(target=func, args=(1,2,)) 7 t1.start() 8 # 2.继承 9 class MyThrea 阅读全文
posted @ 2022-01-21 15:42
看一百次夜空里的深蓝
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号