python platform.uname() - win11 的奇怪结果
我期望当我运行 platform.uname()
时我会收到release == 11,但它是10。
有人能告诉我为什么吗?
其中,节点到底是什么?
在 win 11 中,python 3.7 执行:
import platform
x = platform.uname()
x == (
system='Windows',
node='w11fi', # what is a node?
release='10', # Supposed to be 11?
version='10.0.22000',
machine='AMD64',
processor='Intel64 Family 6 Model 94 Stepping 3, GenuineIntel')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

这很令人困惑,但是,根据 此评论 和 "="">此列表,什么你看到的是正确的:
以下 cpython 问题中有更多详细信息:
It's confusing, but, according to this comment and this list, what you're seeing is correct:
Much more detail in the following cpython issues: