wmic windows管理工具扩展 1. cmd --> wmic --> cpu get * 2. 查看输出信息的NumberOfCores和NumberOfLogicalProcessors列,如下: