发布时间:2019-08-23 07:54:44编辑:auto阅读(2701)
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播放视频文件
51668
51305
41759
38534
33012
30026
28704
23683
23602
21961
2150°
2856°
2375°
2319°
2854°
2331°
3120°
5108°
4942°
3535°