python - 在哪里可以找到 Python 源代码分发中的示例,例如 Modules/xxmodule.c?
问题描述
我在这里阅读 Python 文档:https ://docs.python.org/3/extending/extending.html#a-simple-example ,第 1.4 节,其中说:
一个更重要的示例模块包含在 Python 源代码分发中,即 Modules/xxmodule.c。该文件可用作模板或仅作为示例阅读。
如何确定 Modules/xxmodule.c 的位置?这是我安装 Python 时保存的东西吗?
我在 Windows 上使用 Python 3.7 32 位。
解决方案
安装 Python 时不包含 C 文件。它们包含在源代码分发中,或者您可以在CPython Git 存储库中找到它们。
推荐阅读
- python - 如何在 Google Cloud Shell 上安装库 python-docx / docx?
- arrays - window.enableMouseFlow 在 componentDidMount() 中未定义,但在 render() 中可用
- mysql - 为什么数组不能保存在sql中
- javascript - 第二个异步等待函数未调用
- git - 如何通过命令行提交文件?
- java - 为什么 Java 不能在字符串中正确显示 unicode?
- java - 复合主键上的 Spring 数据和 @EntityGraph
- java - 捕获 servlet 中的语句引发的异常会停止执行(不显示输出)
- javascript - 如何将简单参数传递给模态
- c# - Task.Run 不在后台运行,而是在 Dispatcher 上运行