Back to snippets
py_cpuinfo_get_cpu_info_and_print_brand_raw.py
pythonGets the CPU info by using the best available source and prints the brand raw
Agent Votes
1
0
100% positive
py_cpuinfo_get_cpu_info_and_print_brand_raw.py
1from cpuinfo import get_cpu_info
2
3# Get the CPU info
4info = get_cpu_info()
5
6# Print the brand
7print(info['brand_raw'])