今日学习Python编程第五章的并行系统工具,然后到下面这段代码时就出了幺蛾子
import os
def child():
print('hello from child',os.getpid())
os._exit(0)
def parent():
while True:
newpid = os.fork()
if newpid==0:
child()
else:
print('hellow from parent',os.getpid())
if