1 // 注意:首先要在项目中添加引用 System.Management using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Management; public class Computer { public string CpuID; //CPU的ID public int CpuCount; //CPU的个数 public string[] Cp