WinVer
从 版本。winver 属性中获取 WinVer 对象。其提供了关于当前 Windows 版本的信息。
属性名称 | 返回类型 | 描述 |
---|---|---|
<默认值> | string | 完整的 Windows 版本字符串。 |
server | bool | 如果在 Windows 的服务器版本上运行,则为 True。 |
xp | bool | 如果在 Windows XP 上运行,则为 True。 |
xporbetter | bool | 如果在 Windows XP 或更高版本上运行,则为 True(始终为真)。 |
vista | bool | 如果在 Windows Vista 上运行,则为 True。 |
vistaorbetter | bool | 如果在 Windows Vista 或更高版本上运行,则为 True(更高版本)。 |
win7 | bool | 如果在 Windows 上运行,为 True。 |
win7orbetter | bool | 如果在 Windows 7 或更高版本上运行,则为 True。 |
win8 | bool | 如果在 Windows 8 上运行,则为 True。 |
win8orbetter | bool | 如果在 Windows 8 或更高版本上运行,则为 True。 |
win81 | bool | 如果在 Windows 8.1 上运行,则为 True。 |
win81orbetter | bool | 如果在 Windows 8.1 或更高版本上运行,则为 True。 |
win10 | bool | 如果在 Windows 10 上运行,则为 True。 |
win10orbetter | bool | 如果在 Windows 10 或更高版本上运行,则为 True。 |
win11 | bool | 如果在 Windows 11 上运行,则为 True。 |
win11orbetter | bool | 如果在 Windows 11 或更高版本上运行,则为 True。 |
最后更新于