我在家里写了2.7版本的python代码,但现在我正在尝试修复它,使其在工作时运行在2.4版本上。
首先是hline对我不起作用。我有过
stdscr.hline(0,0,'=',5)但它只打印出一个=标志。
第二个问题是chgat不能在
screen.chgat(0,0,-1,curses.color_pair(2)因为它返回AttributeError: chgat
不确定如何禁用游标,因为
curses.curs_set(0)` doesn't work either.`enter code here`我找不到任何关于python 2.4.3的诅咒的文档,所以我在移植时遇到了问题。
发布于 2013-05-14 05:24:06
你的确切问题“关于python 2.4.3的诅咒的文档”的答案是:
http://docs.python.org/release/2.4.3/lib/module-curses.html
https://stackoverflow.com/questions/16528700
复制相似问题