为什么 Windows 上的 cPython 没有 curses?

Why does cPython on Windows not have curses?

在 Linux 上,当您安装了 cPython 时,您可以简单地 import curses,但在 Windows 上并非如此。

我只找到了this:

The Windows version of Python doesn’t include the curses module.

这种不一致的原因是什么?

Python 模块只是类 unix 系统的系统库的包装器 - curses。 Windows - PDCurses 有一个端口,但用户需要单独安装它,它不像原始库那样可靠。

您可以尝试使用像 zephyrproject-rtos 这样的库之一 / windows-诅咒