Python3 诅咒不能识别curses.resizeterm()

时间:2021-04-14 21:29:59

标签: python python-3.x python-curses

我在 Fedora PC(redhat linux)上运行 Python,并通过 python3 -m idlelib.idle 从终端运行 IDLE。但是,尝试运行 curses.resizeterm(40,40) 会导致错误

File "/home/quowlord/Documents/ASCIIengineALPHA_1.py", line 75, in <module>
curses.resize_term(40,40)
AttributeError: module 'curses' has no attribute 'resize_term'

(其他 curses 调用有效,包括影响终端的调用,例如 curses.start_color()curses.initscr()。)

我不知道接下来该尝试什么,因为我已经尝试重新安装 python。

0 个答案:

没有答案