How to check your computer with a few nuclear python

Today, multi-process research time, if you want to take advantage of multicore CPU resources, the most basic thing you should know that your computer has several core.

Here is python3 the os module to view your computer is several nuclear methods.

import os
print(os.cpu_count())

 

Guess you like

Origin www.cnblogs.com/zrmw/p/10943447.html