pip install py-cpuinfoimport cpuinfo brand = cpuinfo.get_cpu_info().get('brand_raw') print(brand) cpuinfo.get_cpu_info_json()比好的方式应该是使用 cpuinfo。来源:Get the processor type using python for Apple M1 processor gives me an Intel processor
比好的方式应该是使用
cpuinfo
。来源:Get the processor type using python for Apple M1 processor gives me an Intel processor