ARCH:x86-x64如何获取有关OS的完整信息(体系结构,OS名称,OS版本,安装的语言等),例如systeminfo
,但不使用cmd
, powershell
但是大多数cmd
或powershell
命令不可用Windows 7的早期版本,或者仅此命令可能无法执行。
You should try psutil . It supports Windows as well as Mac and Linux. You can get started with psutil/host.PlatformInformation to retrieve OS name and version.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.