啓動Python解釋器實例時顯示的行是什麼意思?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 win32
和r27:82525
部分。
啓動Python解釋器實例時顯示的行是什麼意思?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 win32
和r27:82525
部分。
您看到的那一行代表了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
r27
:修訂27
82525
:建立82525
Jul 4 2010, 07:43:08
:當你的Python二進制建
MSC v.1500
:與64瓦特位VC++ 2008
win32
:你正在使用windows
謝謝,雖然我不知道要搜索其他問題 - 我只搜索「python版本行」 – Mark
僅供參考,這裏是[Arch Linux上Python2和Python3的當前開始文本](http://pastebin.com/y053y6dT)。 –
如何獲得該版本字符串?所有'python --version'對我來說都是'Python 2.7.8' – poizan42
@ poizan42它會在你輸入python shell時出現。在命令行中,當你輸入python時,這個文本出現在請求輸入的行的前面。>>>> – Mark