Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个终端 UI 库,提供与 python3 兼容的按钮、复选框等小部件。
我试过了:
有人知道这样的图书馆吗?
谢谢!
Cython 支持 Python 3,我能够通过将所有更改__new__为__cinit__.
__new__
__cinit__
请注意,此时这些示例仍需要移植到 Python 3。尝试运行示例时,我得到“TypeError:预期的字节,str found”。将所有字符串切换为字节有效。
如果 API 也接受 Python 3 下的字符串可能会更好,但这肯定是更多的工作。