摘要: 多进程更适合CPU密集型任务,而多线程更适合IO密集型任务。 多进程 multiprocessing模块 import multiprocessing def my_function(arg1, arg2): print("Do something with arguments{},{}".form 阅读全文
posted @ 2023-02-18 22:59 rustling 阅读(17) 评论(0) 推荐(0) 编辑