Open qiwihui opened 3 years ago
这本书将涵盖 CPython 内部实现的主要概念,并学习如何:
CPython Internals resources
遵循 Creative Commons Public Domain (CC0) License。
这书中的代码已经在 Windows 10、macOS 10.15 和 Linux 上使用 Python 3.9.0b1 进行了测试。
CPython 源代码大约 65% 是 Python(测试是重要的部分)、24% C,其余是其他语言的混合。
从 code.visualstudio.com 下载 Visual Studio Code,并在本地安装。
推荐的扩展:
VS Code 在工作区目录中创建一个文件夹 .vscode。 在此文件夹中,你可以创建:
.vscode
tasks.json
launch.json
在 .vscode 目录中创建一个 tasks.json 文件,并添加以下内容:
cpython-book-samples/11/tasks.json:
cpython-book-samples/11/tasks.json
{ "version": "2.0.0", "tasks": [ { "label": "build", "type": "shell", "group": { "kind": "build", "isDefault": true }, "windows":{ "command": "PCBuild\build.bat", "args": ["-p x64 -c Debug"] }, "linux":{ "command": "make -j2 -s" }, "osx":{ "command": "make -j2 -s" } } ] }
使用任务资源管理器插件,你将在 vscode 组中看到你配置的任务列表。
GitHub repo: qiwihui/blog Follow me: @qiwihui Site: QIWIHUI
GitHub repo: qiwihui/blog
Follow me: @qiwihui
Site: QIWIHUI
介绍
这本书将涵盖 CPython 内部实现的主要概念,并学习如何:
在线资源
CPython Internals resources
代码协议
遵循 Creative Commons Public Domain (CC0) License。
设置开发环境
CPython 源代码大约 65% 是 Python(测试是重要的部分)、24% C,其余是其他语言的混合。
设置 Visual Studio Code
从 code.visualstudio.com 下载 Visual Studio Code,并在本地安装。
推荐的扩展:
配置任务和启动文件
VS Code 在工作区目录中创建一个文件夹
.vscode
。 在此文件夹中,你可以创建:tasks.json
用于执行项目命令的快捷方式launch.json
用于配置调试器在
.vscode
目录中创建一个tasks.json
文件,并添加以下内容:cpython-book-samples/11/tasks.json
:使用任务资源管理器插件,你将在 vscode 组中看到你配置的任务列表。