# Python 的历史

Python 的历史，是一门[通用编程语言](https://www.edgepedia.org/zh/general-purpose-programming-language)的历史。这门语言始于1989年12月，最初是[吉多·范罗苏姆](https://www.edgepedia.org/zh/guido-van-rossum)（Guido van Rossum）在阿姆斯特丹的数学与计算机科学中心（Centrum Wiskunde & Informatica，CWI）所做的一个业余项目，1991年公开发布，后来因 Python 2 与 Python 3 两个系列之间长达十年、有意为之的兼容性断裂而经历了重塑。

| 关键事实 | 详情 |
|---|---|
| 起源 | 1989年12月，吉多·范罗苏姆在阿姆斯特丹 CWI 利用圣诞周作为业余项目构思而成；是 ABC 教学语言的后代<sup>[1](https://www.python.org/doc/essays/foreword/)</sup> |
| 首次公开发布 | Python 0.9.0，1991年2月<sup>[2](https://mungomash.com/software/python/versions/)</sup> |
| Python 1.0 | 1994年发布；1.0.3 版日期为1994年5月4日<sup>[3](https://gvanrossum.github.io/python-history/a-brief-timeline-of-python.html)</sup> |
| Python 2.0 | 2000年10月；列表推导式、垃圾回收、Unicode 支持，以及 PEP 流程<sup>[4](https://python.ximg.app/history.html)</sup> |
| Python 软件基金会 | 2001年成立，作为一个非营利组织持有与 Python 相关的知识产权<sup>[5](https://docs.python.org/3.10/license.html)</sup> |
| Python 3.0 | 2008年12月；与 Python 2 不向后兼容<sup>[6](https://malloy.people.clemson.edu/publications/papers/esem2017/paper.pdf)</sup> |
| Python 2 的终结 | Python 2.7 的支持期限从2015年延长至2020年1月1日；最终版本 2.7.18 于2020年4月发布<sup>[7](https://python3statement.github.io/)</sup><sup> • </sup><sup>[8](https://courseunbox.com/blogs/python-history-programming-language)</sup> |

## 在 CWI 的起源

Python 脱胎于吉多·范罗苏姆早先参与的两个项目。在 CWI，他曾是兰伯特·梅尔滕斯（Lambert Meertens）、利奥·赫尔茨（Leo Geurts）和史蒂文·彭伯顿（Steven Pemberton）团队中的一名初级程序员，该团队构建了 ABC——一种教学语言，旨在让没有编程经验的人也能快速编写程序。ABC 很优雅，但按范罗苏姆的说法，它是一个封闭系统，只有最基础的输入输出操作，在 Unix/C 世界里从未流行起来；其全大写的关键字和一体化的结构化编辑器尤其令他反感<sup>[1](https://www.python.org/doc/essays/foreword/)</sup><sup> • </sup><sup>[9](https://www.cwi.nl/en/stories/interview-guido-van-rossum-201cid-rather-write-code-than-papers201d/)</sup>。

直接的触发因素是 Amoeba 分布式操作系统项目，这是阿姆斯特丹自由大学的安德鲁·塔嫩鲍姆（Andrew Tanenbaum）与 CWI 的萨佩·米伦德（Sape Mullender）之间的合作。用 C 语言编写所需的实用程序会非常耗时，于是范罗苏姆想，自己能否为此目的编写一个改进版的 ABC<sup>[9](https://www.cwi.nl/en/stories/interview-guido-van-rossum-201cid-rather-write-code-than-papers201d/)</sup>。在他本人的前言叙述中，1989年12月，他正为圣诞前后那一周找一个业余项目，决定为一种脚本语言编写解释器，这种语言要能吸引 Unix/C 黑客，同时避免 ABC 的错误，比如难以添加新的原语操作<sup>[1](https://www.python.org/doc/essays/foreword/)</sup>。他选了 Python 作为工作名称，因为他是《[蒙提·派森的飞行马戏团](https://www.edgepedia.org/zh/monty-pythons-flying-circus)》（Monty Python's Flying Circus）的粉丝<sup>[1](https://www.python.org/doc/essays/foreword/)</sup>。

## 早期发布与成长

首个公开版本 Python 0.9.0 于1991年2月问世，随后是1991年秋的 0.9.2<sup>[2](https://mungomash.com/software/python/versions/)</sup><sup> • </sup><sup>[3](https://gvanrossum.github.io/python-history/a-brief-timeline-of-python.html)</sup>。当时一份 CWI 教程将 Python 描述为一种简单却强大的语言，弥合了 C 与 shell 编程之间的鸿沟，适合快速原型开发，其语法取自 ABC、C、Modula-3 和 Icon<sup>[10](https://ir.cwi.nl/pub/5007/)</sup>。Python 1.0 于1994年推出<sup>[3](https://gvanrossum.github.io/python-history/a-brief-timeline-of-python.html)</sup>。

**制度化。** 2000年5月，范罗苏姆和核心开发团队迁往 BeOpen.com，组建了 BeOpen PythonLabs 团队<sup>[5](https://docs.python.org/3.10/license.html)</sup>。Python 2.0 于2000年10月发布，引入了列表推导式、垃圾回收、Unicode 支持，以及用于提出和记录语言变更的 Python 增强提案（Python Enhancement Proposal，PEP）流程<sup>[4](https://python.ximg.app/history.html)</sup>。2001年，Python 软件基金会（Python Software Foundation，PSF）成立，这是一个专为持有与 Python 相关知识产权而创建的非营利组织<sup>[5](https://docs.python.org/3.10/license.html)</sup>。

## 科学计算生态

一条平行的发展路线使 Python 成为科学计算的标准语言。2001年，各种科学代码库被合并进 SciPy；2006年10月，NumPy 1.0 发布，统一了早先的数组包，为重新统一的科学 Python 社区铺平了道路<sup>[11](https://doi.org/10.1038/s41592-019-0686-2)</sup>。到2007年，Python 在科学与工程领域已颇具存在感，以至于《IEEE 科学与工程中的计算》（*IEEE Computing in Science and Engineering*）专门为一期关于科学中的 Python 的专刊征稿<sup>[11](https://doi.org/10.1038/s41592-019-0686-2)</sup>。SciPy 的历史中提到的一个显著特点是：科学计算能力是被添加到一门通用语言之中的，而不是内建在一门为数值计算设计的语言里<sup>[11](https://doi.org/10.1038/s41592-019-0686-2)</sup>。

## Python 3 与漫长的过渡

Python 的发展沿线性路线行进至 2.5 版，随后分叉：Python 2.6 于2008年10月发布，同年12月 Python 3.0 紧随其后。Python 3.0 与先前版本不向后兼容，从而为开发者开启了一个过渡阶段<sup>[6](https://malloy.people.clemson.edu/publications/papers/esem2017/paper.pdf)</sup>。

过渡是缓慢的。2017年一项使用 PyComply 分析器的实证研究发现，开发者很大程度上并未利用 Python 3 的新特性，而是保留着与 Python 2 的向后兼容，把自己限制在两个系列日益缩小的交集之内<sup>[6](https://malloy.people.clemson.edu/publications/papers/esem2017/paper.pdf)</sup>。由于知道过渡需要时间——许多人估计是五年——开发者计划并行维护 2 和 3 两条线，已弃用的 API 会保留比通常长得多的时间，以便为 2.7 上的开发者提供迁移路径<sup>[12](https://blog.python.org/2011/03/recent-discussion-on-python-dev/)</sup>。

**Python 2 的终结。** 到2015年前后——原计划终止 Python 2 支持的时间——许多重要库已支持 Python 3，但 Python 2 仍有很多用户，于是支持的终止被推迟到2020年<sup>[7](https://python3statement.github.io/)</sup>。大约在2016年起草的 Python 3 声明，是各项目作出的到2020年要求使用 Python 3 的承诺；它始于科学 Python 生态，Jupyter 和 matplotlib 是最早的参与者之一，并于2017年末扩展到任何 Python 项目<sup>[7](https://python3statement.github.io/)</sup>。语言开发者将 Python 2.7 的支持从2015年延长至2020年1月1日，Python 2 的最终版本 2.7.18 于2020年4月发布<sup>[7](https://python3statement.github.io/)</sup><sup> • </sup><sup>[8](https://courseunbox.com/blogs/python-history-programming-language)</sup>。到2024年，该声明的作者们称过渡已经成功，仅支持 Python 3 对项目而言完全正常<sup>[7](https://python3statement.github.io/)</sup>。

## 治理

吉多·范罗苏姆发起了 Python 项目，并从一开始就以“终身仁慈独裁者”（Benevolent Dictator for Life，BDFL）的身份领导它，直到2018年7月宣布卸任该角色。<sup>[13](https://peps.python.org/pep-0013/)</sup> 他卸任之后，一系列治理提案（PEP 801x 系列）被提出，核心开发者投票选定 PEP 8016 作为新的治理模式<sup>[13](https://peps.python.org/pep-0013/)</sup>。根据由此产生的 PEP 13，项目由一个五人指导委员会领导，该委员会由核心团队每年选举产生，有权接受或否决 PEP，并充当最终上诉法庭<sup>[13](https://peps.python.org/pep-0013/)</sup>。

## 近期发展

近期最重要的变化涉及全局解释器锁（global interpreter lock，GIL），这一机制在历史上阻止了 CPython 线程并行运行 Python 代码。PEP 703《让 CPython 中的全局解释器锁成为可选》于2023年10月24日被指导委员会接受，附带条件是推行须循序渐进且可逆<sup>[14](https://peps.python.org/pep-0703/)</sup>。从 Python 3.13 开始，CPython 提供了一种自由线程构建，其中 GIL 被禁用，允许线程在可用的 CPU 核心上并行运行<sup>[15](https://docs.python.org/3/howto/free-threading-python.html)</sup>。在2025年10月7日发布的 Python 3.14 中，自由线程 Python 根据 PEP 779 获得了官方支持，官方的 macOS 和 Windows 二进制文件开始包含实验性的即时（JIT）编译器<sup>[16](https://www.python.org/downloads/release/python-3140/)</sup>。

发布节奏也已正式化。2026年10月9日发布的 Python 3.15.0，经历了17个月的开发期，按 PEP 602 的定义形成了功能版本之间12个月的发布节奏，缺陷修复更新为期两年，安全更新持续到大约2031年10月<sup>[17](https://peps.python.org/pep-0790/)</sup><sup> • </sup><sup>[18](https://www.python.org/downloads/release/python-3150/?trk=public_post_comment-text)</sup>。

## References

1. [Guido van Rossum, Foreword for "Programming Python" (1st ed.), Python.org](https://www.python.org/doc/essays/foreword/)
2. [Python Version History, Mungomash](https://mungomash.com/software/python/versions/)
3. [A Brief Timeline of Python, The History of Python (Guido van Rossum)](https://gvanrossum.github.io/python-history/a-brief-timeline-of-python.html)
4. [Python — History timeline](https://python.ximg.app/history.html)
5. [History and License, Python 3.10 documentation](https://docs.python.org/3.10/license.html)
6. [Malloy, B. A., and Power, J. F., Quantifying the Transition from Python 2 to 3: An Empirical Study of Python Applications](https://malloy.people.clemson.edu/publications/papers/esem2017/paper.pdf)
7. [Sunsetting Python 2 support, Python 3 Statement](https://python3statement.github.io/)
8. [History of Python: Who Created It and When (Full Timeline), Course Unbox](https://courseunbox.com/blogs/python-history-programming-language)
9. ["I'd rather write code than papers", CWI interview with Guido van Rossum (2019)](https://www.cwi.nl/en/stories/interview-guido-van-rossum-201cid-rather-write-code-than-papers201d/)
10. [G. van Rossum, Python tutorial, CWI](https://ir.cwi.nl/pub/5007/)
11. [SciPy 1.0: fundamental algorithms for scientific computing in Python, Nature Methods (2020)](https://doi.org/10.1038/s41592-019-0686-2)
12. [Deprecations between Python 2.7 and 3.x, Python Insider blog (2011)](https://blog.python.org/2011/03/recent-discussion-on-python-dev/)
13. [PEP 13 – Python Language Governance](https://peps.python.org/pep-0013/)
14. [PEP 703 – Making the Global Interpreter Lock Optional in CPython](https://peps.python.org/pep-0703/)
15. [Python support for free threading, Python 3.14 documentation](https://docs.python.org/3/howto/free-threading-python.html)
16. [Python Release Python 3.14.0, Python.org](https://www.python.org/downloads/release/python-3140/)
17. [PEP 790 – Python 3.15 Release Schedule](https://peps.python.org/pep-0790/)
18. [Python Release Python 3.15.0, Python.org](https://www.python.org/downloads/release/python-3150/?trk=public_post_comment-text)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › 编程语言 › 具体编程语言 › C族与命令式语言

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/history-of-python

English original: https://www.edgepedia.org/history-of-python
