Python mendapatkan inti OS

import os

print(os.cpu_count())
florinrelea