摘要: Python多进程 主进程结束前如何销毁子进程 因为一般子进程不结束,主进程也不会结束 有两种方式可以解决该问题 import multiprocessing import time def task(): while True: print("任务执行中") time.sleep(0.2) if 阅读全文
posted @ 2021-01-14 00:36 极客易先生 阅读(2859) 评论(0) 推荐(0) 编辑