platform.system()的潜在结果是什么

时间:2015-06-29 02:43:40

标签: python

以下命令可能的返回值是什么?

0* Unknown SSL protocol error in connection to packages.gitlab.com:443
  0     0    0     0    0     0      0      0 --:--:--  0:02:00 --:--:--
0
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to packages.gitlab.com:44
3
curl is unable to connect to packagecloud.io over TLS when running:
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/co
nfig_file.list?os=Ubuntu&dist=trusty&name=git.curuba2.fr&source=script
This is usually due to one of two things:

 1.) Missing CA root certificates (make sure the ca-certificates package is i
nstalled)
 2.) An old version of libssl. Try upgrading libssl on your system to a more
recent version

我看过SO question here,这不是同一个问题。 我查看了docs here,但他们只列出: ' Linux',' Windows'或' Java'。 那里还有什么? mac会返回" Mac"?

1 个答案:

答案 0 :(得分:5)

<body> <p aria-selected="true" ><strong aria-hidden="true">IMPORTANT:</strong> This is desc text.</p> ... </body> the uname system call检索其信息(如果可用),或者如果platform.system()不可用则合成结果。这意味着没有固定的可能返回集 - 它直接从操作系统获取,操作系统可以返回它想要的任何内容。对于它的价值,Mac OS X将返回uname。 (如果您有兴趣,请查看the source。)