Need to get the current installation of Python is 32 or 64, because beginners, the Internet to find some information also does not work, and then consulted the predecessors only know, as follows
$ python3.5
Python 3.5.2 (V3.5.2:4DEF2A2901A5, June 26 2016, 10:49:35)
[GCC 4.2.1 (Apple Inc. build 5577)] on Darwin
Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.
>>> Import Platform
>>> Platform.architecture ()
(' 32bit ', ')
>>>
In addition, the platform module can also get a lot of other information, where the content reproduced s from the Python development _platform_ get the operating system details tool
'''
In Python, the platform module gives us a lot of ways to get information about the operating system.
Such as:
Import Platform
Platform.platform () #获取操作系统名称及版本号, ' Windows-7-6.1.7601-sp1 '
Platform.version () #获取操作系统版本号, ' 6.1.7601 '
Platform.architecture () #获取操作系统的位数, (' 32bit ', ' WindowsPE ')
Platform.machine () #计算机类型, ' x86 '
Platform.node () #计算机的网络名称, ' hongjie-pc '
Platform.processor () #计算机处理器信息, ' x86 Family Model 6 Stepping 3, AUTHENTICAMD '
Platform.uname () #包含上面所有的信息汇总, Uname_result (system= ' Windows ', node= ' hongjie-pc ',
Release= ' 7 ', version= ' 6.1.7601 ', machine= ' x86 ', processor= ' x86 Family
Model 6 Stepping 3, AUTHENTICAMD ')
You can also get some information about Python in your computer:
Import Platform
Platform.python_build ()
Platform.python_compiler ()
Platform.python_branch ()
Platform.python_implementation ()
Platform.python_revision ()
Platform.python_version ()
Platform.python_version_tuple ()
'''