os.version()
返回标识内核版本的字符串。
¥Returns a string identifying the kernel version.
在 POSIX 系统上,操作系统版本是通过调用 uname(3)
来确定的。在 Windows 上,使用 RtlGetVersion()
,如果不可用,则将使用 GetVersionExW()
。有关详细信息,请参阅 https://en.wikipedia.org/wiki/Uname#Examples。
¥On POSIX systems, the operating system release is determined by calling
uname(3)
. On Windows, RtlGetVersion()
is used, and if it is not
available, GetVersionExW()
will be used. See
https://en.wikipedia.org/wiki/Uname#Examples for more information.