# 自訂 Python 直譯器

The modules described in this chapter allow writing interfaces similar to 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. (The `codeop` module is lower-level, used to support compiling a possibly incomplete chunk of Python code.)

本章節所描述的模組清單為：

- `code` --- 直譯器基底類別
  - Interactive Interpreter Objects
  - Interactive Console Objects
- `codeop` --- 編譯 Python 程式碼