platform.machine()的可能值

时间:2017-07-16 04:11:25

标签: python

  

platform.machine()
  返回机器类型,例如' I386&#39 ;.如果无法确定值,则返回空字符串。

此字段的可能值是什么?

1 个答案:

答案 0 :(得分:4)

simplejson平台上,此信息comes directly from the result of that API call。也就是说,os.uname()返回与platform.machine()命令相同的内容。

因此,答案实际上取决于内核对uname -m系统调用的实现。为此,请参阅此问题和答案:

<强> Possible values for `uname -m` (utsname.machine)