发布时间:2019-08-23 07:54:44编辑:auto阅读(2808)
import os
pid=os.fork() #fork反复拷贝
if pid==0:
print("A",os.getpid(),os.getppid())
else:
print("B",os.getpid(),os.getppid())
# os.getpid()获取当前进程id os.getppid()获取父进程id
上一篇: Python简单制作GIF
下一篇: 使用python播放视频文件
52284
52190
42344
39226
33707
30667
29382
24329
24208
22573
22°
24°
178°
176°
192°
186°
226°
406°
435°
438°