user_image
By  aifeiyu915    On   2019年6月6日 11:11

cmd1 = "/usr/sbin/system_profiler SPHardwareDataType" # cmd1 = "/usr/sbin/system_profiler SPSoftwareDataType" output1 = os.popen(cmd1) print(output1.read()) 这样就可以获取Mac系统的硬件配置