发布时间:2019-08-23 07:54:44编辑:auto阅读(2603)
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播放视频文件
50976
50359
40974
37843
32306
29196
28083
22912
22876
21208
1075°
1754°
1438°
1371°
1642°
1457°
2114°
3664°
3597°
2531°