os.machine()


返回机器类型的字符串,例如 armaarch64mipsmips64ppc64ppc64les390s390xi386i686x86_64

【Returns the machine type as a string, such as arm, aarch64, mips, mips64, ppc64, ppc64le, s390, s390x, i386, i686, x86_64.】

在 POSIX 系统上,机器类型是通过调用 uname(3) 来确定的。在 Windows 上,使用 RtlGetVersion(),如果不可用,则使用 GetVersionExW()。更多信息请参见 https://en.wikipedia.org/wiki/Uname#Examples