What does the Python version line mean?

好久不见. 提交于 2019-12-17 16:31:54

问题


What does the line that's displayed when you start an instance of the Python interpreter mean?

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

So I know I have Python 2.7, but what about the rest?

Especially confusing to me are the 64 bit (AMD64) on win32 and r27:82525 sections.


回答1:


That line you see indicates how the python interpreter was built. Breaking it down:

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



回答2:


r27: revision 27

82525: build 82525

Jul 4 2010, 07:43:08: when your python binary was built

MSC v.1500: compiled with 64w-bit VC++ 2008

win32: you are using windows

It has also been asked before.



来源:https://stackoverflow.com/questions/17757819/what-does-the-python-version-line-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!