“Python/docs/3.9/library/custominterp”的版本间差异

来自菜鸟教程
Python/docs/3.9/library/custominterp
跳转至:导航、​搜索
(autoload)
 
(Page commit)
 
第1行: 第1行:
 +
{{DISPLAYTITLE:自定义 Python 解释器 — Python 文档}}
 
<div id="custom-python-interpreters" class="section">
 
<div id="custom-python-interpreters" class="section">
  
 
<span id="custominterp"></span>
 
<span id="custominterp"></span>
= Custom Python Interpreters =
+
= 自定义 Python 解释器 =
  
The modules described in this chapter allow writing interfaces similar to
+
本章中描述的模块允许编写类似于 Python 交互式解释器的接口。 如果你想要一个除了 Python 语言之外还支持一些特殊功能的 Python 解释器,你应该查看 [[../code#module-code|code]] 模块。 ([[../codeop#module-codeop|codeop]] 模块是较低级别的,用于支持编译可能不完整的 Python 代码块。)
Python's interactive interpreter. If you want a Python interpreter that
 
supports some special feature in addition to the Python language, you should
 
look at the [[../code#module-code|<code>code</code>]] module. (The [[../codeop#module-codeop|<code>codeop</code>]] module is lower-level, used
 
to support compiling a possibly-incomplete chunk of Python code.)
 
  
The full list of modules described in this chapter is:
+
本章中描述的模块的完整列表是:
  
 
<div class="toctree-wrapper compound">
 
<div class="toctree-wrapper compound">
  
* [[../code|<code>code</code> --- Interpreter base classes]]
+
* [[../code|<code>code</code> — 解释器基类]]
** [[../code#interactive-interpreter-objects|Interactive Interpreter Objects]]
+
** [[../code#interactive-interpreter-objects|交互式解释器对象]]
** [[../code#interactive-console-objects|Interactive Console Objects]]
+
** [[../code#interactive-console-objects|交互式控制台对象]]
* [[../codeop|<code>codeop</code> --- Compile Python code]]
+
* [[../codeop|<code>codeop</code> — 编译 Python 代码]]
  
  
第23行: 第20行:
  
 
</div>
 
</div>
 +
<div class="clearer">
  
[[Category:Python 3.9 中文文档]]
+
 
 +
 
 +
</div>
 +
 
 +
[[Category:Python 3.9 文档]]

2021年10月31日 (日) 04:51的最新版本

自定义 Python 解释器

本章中描述的模块允许编写类似于 Python 交互式解释器的接口。 如果你想要一个除了 Python 语言之外还支持一些特殊功能的 Python 解释器,你应该查看 code 模块。 (codeop 模块是较低级别的,用于支持编译可能不完整的 Python 代码块。)

本章中描述的模块的完整列表是: