from multiprocessing import cpu_count print(cpu_count())