Created
October 4, 2018 20:35
-
-
Save Vresod/33c630d4376849e03614c3036728c3ab to your computer and use it in GitHub Desktop.
Processor utility!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
cpus = os.cpu_count() | |
if cpus == 1: | |
print('You have',cpus,'CPU.') | |
else: | |
print('You have',cpus,'CPUS.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment