windos系统下运行Pyhon的os.fork

import os

ret =os.fork()
if ret==0:
while Ture:
print("----1----")
time.sleep(1)
else:
while Ture:
print("----2----")
time.sleep(1)

windos系统下运行Pyhon的os.fork_第1张图片
参考如下哥们的建议

https://blog.csdn.net/C2496649361/article/details/80648946?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159013530519725211906913%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=159013530519725211906913&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v25-2-80648946.first_rank_v2_rank_v25&utm_term=windos%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8os.fork

你可能感兴趣的:(学习Python)