可以做机器码用。
import sys.cpu; var cpuInfo = sys.cpu.getInfo(1,{ INT eax;INT ebx;INT ecx;INT edx } ) var cpuid = string.format("XX",cpuInfo.edx,cpuInfo.eax )
import console; console.log("CPU序列号",cpuid) console.log("CPU频率",math.round(sys.cpu.getFrequence()/1000,2) " GHz" ) console.log("CPU商标",sys.cpu.getBrand() ) console.log("CPU厂商", ( sys.cpu.getVender() ) )