Python版本的含义是什么?

时间:2013-07-20 01:39:55

标签: python 32bit-64bit

启动Python解释器实例时显示的行是什么意思?

Python 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32

所以我知道我有Python 2.7,但其余的呢?

特别令我困惑的是64 bit (AMD64) on win32r27:82525部分。

2 个答案:

答案 0 :(得分:28)

你看到的这一行表明python解释器是如何构建的。打破它:

Python 2.7                        -- Python version
(r27:82525, Jul 4 2010, 07:43:08) -- The build date and revision from src trunk 
                                     that was used to build this.
[MSC v.1500 64 bit (AMD64)]       -- Compiled with MSVC compiler targeting 64-bit
on win32                          -- Obviously for windows platform

答案 1 :(得分:7)

r27:第27版

82525:build 82525

Jul 4 2010, 07:43:08:构建python二进制文件时

MSC v.1500:使用64位VC ++ 2008编译

win32:您正在使用Windows

It has also been asked before