Python IDLE 在 Windows 上使用什么终端

What Terminal does Python IDLE use on Windows

我是 ,我注意到我不知道 IDLE 在 Windows 中使用什么终端。我默认 Python 没有为 Windows 编写自己的终端,并且他们可能使用 API 为他们提供 cmd 或 [=14] 的某个版本=].我验证了解释器在 cmd 上运行,但我不知道 IDLE

IDLE在Windows中使用什么终端?

IDLE 不是建立在外部 shell 或终端上,而是建立在 Tkinter GUI 工具包上。

编辑器window的源代码可以阅读here; for the interactive shell, see here