【问题标题】:What does the Python version line mean?Python 版本行是什么意思?
【发布时间】:2013-07-19 10:21:25
【问题描述】:

启动 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 --version 对我来说都是Python 2.7.8
  • @poizan42 进入python shell时出现。在命令行中,当您键入 python 时,此文本会出现在要求您输入 >>> 的行之前
  • 你说得对,我现在觉得自己很蠢

标签: python 32bit-64bit


【解决方案1】:

您看到的那一行表示 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

【讨论】:

  • 但是为什么不说win64呢?
  • @Mark 主要是历史原因。 win32 有点用词不当,因为它通常用于指代 Windows 平台,而不管位宽支持。
  • @JonKiparsky 你可能在开玩笑,但以防万一——Windows 的前三个字母是“win”
  • @Mark 你不是说WoW64吗?在微软领域,64 位的东西进入 System32。
  • 我总是可以依靠 stackoverflow 来回答我的类似问题
【解决方案2】:

r27:修订版 27

82525: 构建 82525

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

MSC v.1500: 用 64w-bit VC++ 2008 编译

win32: 你用的是windows

It has also been asked before.

【讨论】:

  • 谢谢,虽然我不知道要搜索其他问题 - 我只搜索了“python版本行”
猜你喜欢
  • 2012-08-11
  • 1970-01-01
  • 2022-11-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-08-21
  • 2022-11-13
  • 2014-06-03
相关资源
最近更新 更多