在 Python 3.8.10 中,我无法获得正确的 Windows 版本,我正在运行 Windows 11 Insider Preview,但输出显示为 Windows 10
有什么解决方法吗?
编辑:目前我发现检测 W11 的唯一方法是
wmic os get name
python windows-11
python ×1
windows-11 ×1