ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](intro.xhtml "概述") | - [上一页](../extending/embedding.xhtml "1. Embedding Python in Another Application") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - $('.inline-search').show(0); | # Python/C API 参考手册 本手册描述了希望编写扩展模块并将 Python 解释器嵌入其应用程序中的 C 和 C++ 程序员可用的 API。同时可以参阅 [扩展和嵌入 Python 解释器](../extending/index.xhtml#extending-index) ,其中描述了扩展编写的一般原则,但没有详细描述 API 函数。 - [概述](intro.xhtml) - [代码标准](intro.xhtml#coding-standards) - [包含文件](intro.xhtml#include-files) - [有用的宏](intro.xhtml#useful-macros) - [对象、类型和引用计数](intro.xhtml#objects-types-and-reference-counts) - [异常](intro.xhtml#exceptions) - [嵌入Python](intro.xhtml#embedding-python) - [调试构建](intro.xhtml#debugging-builds) - [稳定的应用程序二进制接口](stable.xhtml) - [The Very High Level Layer](veryhigh.xhtml) - [Reference Counting](refcounting.xhtml) - [异常处理](exceptions.xhtml) - [Printing and clearing](exceptions.xhtml#printing-and-clearing) - [抛出异常](exceptions.xhtml#raising-exceptions) - [Issuing warnings](exceptions.xhtml#issuing-warnings) - [Querying the error indicator](exceptions.xhtml#querying-the-error-indicator) - [Signal Handling](exceptions.xhtml#signal-handling) - [Exception Classes](exceptions.xhtml#exception-classes) - [Exception Objects](exceptions.xhtml#exception-objects) - [Unicode Exception Objects](exceptions.xhtml#unicode-exception-objects) - [Recursion Control](exceptions.xhtml#recursion-control) - [标准异常](exceptions.xhtml#standard-exceptions) - [标准警告类别](exceptions.xhtml#standard-warning-categories) - [工具](utilities.xhtml) - [操作系统实用程序](sys.xhtml) - [系统功能](sys.xhtml#system-functions) - [过程控制](sys.xhtml#process-control) - [导入模块](import.xhtml) - [Data marshalling support](marshal.xhtml) - [语句解释及变量编译](arg.xhtml) - [字符串转换与格式化](conversion.xhtml) - [反射](reflection.xhtml) - [编解码器注册与支持功能](codec.xhtml) - [抽象对象层](abstract.xhtml) - [Object Protocol](object.xhtml) - [数字协议](number.xhtml) - [Sequence Protocol](sequence.xhtml) - [Mapping Protocol](mapping.xhtml) - [迭代器协议](iter.xhtml) - [缓冲协议](buffer.xhtml) - [Old Buffer Protocol](objbuffer.xhtml) - [具体的对象层](concrete.xhtml) - [基本对象](concrete.xhtml#fundamental-objects) - [数值对象](concrete.xhtml#numeric-objects) - [序列对象](concrete.xhtml#sequence-objects) - [容器对象](concrete.xhtml#container-objects) - [函数对象](concrete.xhtml#function-objects) - [其他对象](concrete.xhtml#other-objects) - [Initialization, Finalization, and Threads](init.xhtml) - [在Python初始化之前](init.xhtml#before-python-initialization) - [全局配置变量](init.xhtml#global-configuration-variables) - [Initializing and finalizing the interpreter](init.xhtml#initializing-and-finalizing-the-interpreter) - [Process-wide parameters](init.xhtml#process-wide-parameters) - [Thread State and the Global Interpreter Lock](init.xhtml#thread-state-and-the-global-interpreter-lock) - [Sub-interpreter support](init.xhtml#sub-interpreter-support) - [Asynchronous Notifications](init.xhtml#asynchronous-notifications) - [Profiling and Tracing](init.xhtml#profiling-and-tracing) - [Advanced Debugger Support](init.xhtml#advanced-debugger-support) - [Thread Local Storage Support](init.xhtml#thread-local-storage-support) - [内存管理](memory.xhtml) - [概述](memory.xhtml#overview) - [原始内存接口](memory.xhtml#raw-memory-interface) - [Memory Interface](memory.xhtml#memory-interface) - [对象分配器](memory.xhtml#object-allocators) - [默认内存分配器](memory.xhtml#default-memory-allocators) - [Customize Memory Allocators](memory.xhtml#customize-memory-allocators) - [The pymalloc allocator](memory.xhtml#the-pymalloc-allocator) - [tracemalloc C API](memory.xhtml#tracemalloc-c-api) - [示例](memory.xhtml#examples) - [对象实现支持](objimpl.xhtml) - [在堆中分配对象](allocation.xhtml) - [Common Object Structures](structures.xhtml) - [Type 对象](typeobj.xhtml) - [Number Object Structures](typeobj.xhtml#number-object-structures) - [Mapping Object Structures](typeobj.xhtml#mapping-object-structures) - [Sequence Object Structures](typeobj.xhtml#sequence-object-structures) - [Buffer Object Structures](typeobj.xhtml#buffer-object-structures) - [Async Object Structures](typeobj.xhtml#async-object-structures) - [使对象类型支持循环垃圾回收](gcsupport.xhtml) - [API 和 ABI 版本管理](apiabiversion.xhtml) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](intro.xhtml "概述") | - [上一页](../extending/embedding.xhtml "1. Embedding Python in Another Application") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。