如何使用Python,在Windows下保证父进程退出时,子进程同样退出

2025-06-23 00:23:16
推荐回答(1个)
回答1:

如果你用的threading的话,可调用父进程的setDaemon方法并传入True参数。