sys.platform的可能值? [英] Possible values from sys.platform?
本文介绍了sys.platform的可能值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下命令可能返回的值是什么?
What are the possible return values from the following command?
import sys
print sys.platform
我知道有很多可能性,所以我主要对主要方法(Windows ,Linux,Mac OS)
I know there is a lot of possibilities, so I'm mainly interested in the "main" ones (Windows, Linux, Mac OS)
推荐答案
Mac OS X(10.4、10.5、10.7、10.8):
Mac OS X (10.4, 10.5, 10.7, 10.8):
darwin
Linux( 2.6内核):
Linux (2.6 kernel):
linux2
Windows XP 32位:
Windows XP 32 bit:
win32
括号中的版本已被检查-其他/较新版本可能相同。
Versions in brackets have been checked - other/newer versions are likely to be the same.
这篇关于sys.platform的可能值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文