源于: 执行类代码 – MainOne.py – 函数main_faker
cpu_count的返回值就是cpu数量:
from multiprocessing import cpu_count print(cpu_count())