1.定时器
2.
multiprocessing 模块
is a package that supports spawning processes using an API similar to the threading module.
subprocess 模块
The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes.