00 资料来源与本地基线
大约 4 分钟编程语言Python知识库资料源
00 资料来源与本地基线
自动采集时间:2026-09-29 15:01:08 +0800。机器状态会变化,知识页优先参考官方文档,并用本机结果校验可运行性。
来源原则
- 本地运行时:用于确认解释器版本、平台、路径、标准库数量、离线文档和实际可导入的第三方包。
- 本地离线文档:优先采用与本机解释器配套的
Doc/html,断网时仍可查阅。 - 官方网络资料:用于补充最新版本说明、打包规范、类型规范、测试工具和安全实践。
- 可执行示例:代码以标准库和稳定接口为主;版本专属能力会明确注明最低版本。
本机 Python 基线
| 项目 | 值 |
|---|---|
| 解释器 | C:\Python314\python.exe |
| 实现 | CPython |
| 版本 | 3.14.6 (tags/v3.14.6:c63aec6, Jun 10 2026, 10:26:10) [MSC v.1944 64 bit (AMD64)] |
| 平台 | Windows-11-10.0.26100-SP0 |
| 编译器 | MSC v.1944 64 bit (AMD64) |
| 标准库模块名 | 297 |
| 已安装发行包 | 35 |
| 虚拟环境前缀 | C:\Python314 |
关键路径
| 用途 | 路径 |
|---|---|
| 标准库 | C:\Python314\Lib |
| 第三方包 | C:\Python314\Lib\site-packages |
| 可执行脚本 | C:\Python314\Scripts |
| 离线文档 | C:\Python314\Doc\html |
离线文档
- 文档标题:
3.14.6 Documentation - HTML 文件:569 个
- 已发现的 what's new 版本:
3.9,3.8,3.7,3.6,3.5,3.4,3.3,3.2,3.14,3.13,3.12,3.11,3.10,3.1,3.0
已安装开发相关包
下面是采集时的完整发行包清单。它描述环境现状,不代表项目必须依赖这些包。
| 发行包 | 版本 |
|---|---|
bashlex | 0.18 |
bcrypt | 5.0.0 |
beautifulsoup4 | 4.15.0 |
cffi | 2.1.0 |
charset-normalizer | 3.4.9 |
cryptography | 49.0.0 |
flatbuffers | 25.12.19 |
imageio-ffmpeg | 0.6.0 |
invoke | 3.0.3 |
lxml | 6.1.1 |
numpy | 2.5.2 |
onnxruntime | 1.29.0 |
opencv-python | 5.0.0.93 |
packaging | 26.3 |
paramiko | 5.0.0 |
pdfminer.six | 20260107 |
pdfplumber | 0.11.10 |
pillow | 12.3.0 |
pip | 26.1.2 |
protobuf | 7.36.1 |
pyclipper | 1.4.0 |
pycparser | 3.0 |
PyNaCl | 1.6.2 |
pypdf | 6.17.0 |
pypdfium2 | 5.12.1 |
python-docx | 1.2.0 |
python-pptx | 1.0.2 |
PyYAML | 6.0.3 |
rapidocr-onnxruntime | 1.2.3 |
shapely | 2.1.2 |
shellcheck_py | 0.11.0.1 |
six | 1.17.0 |
soupsieve | 2.9.2 |
typing_extensions | 4.16.0 |
xlsxwriter | 3.2.9 |
官方网络资料
本次成功读取 15/15 个网络来源。若状态不是 ok,应先检查网络或上游站点,不要把失败页面当作官方内容。
| 分类 | 来源 | 用途 | 状态 | 页面标题 |
|---|---|---|---|---|
| 语言与标准库 | Python 3 Documentation | 语言版本、文档首页、标准库导航入口 | ok (200) | 3.14.7 Documentation |
| 语言与标准库 | The Python Tutorial | 解释器、基础语法、数据结构、模块、异常、类、虚拟环境 | ok (200) | The Python Tutorial — Python 3.14.7 documentation |
| 语言与标准库 | The Python Language Reference | 词法、数据模型、执行模型、表达式、语句、导入系统 | ok (200) | The Python Language Reference — Python 3.14.7 documentation |
| 语言与标准库 | The Python Standard Library | 标准库模块、函数、类型和平台行为 | ok (200) | The Python standard library — Python 3.14.7 documentation |
| 语言与标准库 | Python Setup and Usage | 命令行、Windows/macOS/Linux 安装与解释器配置 | ok (200) | Python Setup and Usage — Python 3.14.7 documentation |
| 解释器与打包 | Distributing Python Modules | 构建、打包和分发发行版 | ok (200) | Distributing Python Modules — Python 3.14.7 documentation |
| 解释器与打包 | Python Packaging User Guide | pyproject.toml、构建后端、虚拟环境、发布与工具建议 | ok (200) | Python Packaging User Guide |
| 解释器与打包 | Packaging Python Projects | 最小可发布项目结构与构建流程 | ok (200) | Packaging Python Projects - Python Packaging User Guide |
| 版本与规范 | What's New In Python 3.14 | 3.14 的功能、弃用、移除、移植和 C API 变化 | ok (200) | What’s new in Python 3.14 — Python 3.14.7 documentation |
| 版本与规范 | PEP 8 - Style Guide for Python Code | 命名、导入、布局、注释与可读性约定 | ok (200) | PEP 8 – Style Guide for Python Code | peps.python.org |
| 版本与规范 | PEP 20 - The Zen of Python | Python 设计哲学 | ok (200) | PEP 20 – The Zen of Python | peps.python.org |
| 版本与规范 | PEP 484 - Type Hints | typing、渐进类型与静态检查约定 | ok (200) | PEP 484 – Type Hints | peps.python.org |
| 质量与安全 | pytest Documentation | 测试发现、fixture、参数化和断言输出 | ok (200) | pytest documentation |
| 质量与安全 | mypy Documentation | 静态类型检查与类型收窄 | ok (200) | mypy 2.3.1 documentation |
| 质量与安全 | Python Security | 安全的开发、部署和依赖管理实践 | ok (200) | Python Security — Python Security 0.0 documentation |
版本差异
- 本机离线文档与解释器对应
Python 3.14.6。 - 在线
https://docs.python.org/3/会持续指向当前的 Python 3 文档,可能比本机补丁版本更新。 - 涉及行为差异时,应先查看当前系列的 What's New、Deprecations 和 Porting 章节。
刷新方式
在仓库根目录运行:
py scripts/collect_python3_sources.py只采集本地环境、不访问网络:
py scripts/collect_python3_sources.py --offline原始结构化快照写入同目录的
sources.json,适合后续做差异对比或自动告警。
