在下面的脚本中,time.sleep()延迟将在addstr()之前休眠
time.sleep()
addstr()
from unicurses import * from time import * stdscr = initscr() addstr("Hello") sleep(1) endwin()
是否有用于延迟的curses函数?
curses
发布于 2018-09-24 20:00:43
使用napms而不是sleep。它适用于其他 python/curses绑定。
napms
sleep
例句
看起来很奇怪,因为在刷新中没有显式的恩德温调用。像这样的东西可能对你有用:
from unicurses import * from time import * stdscr = initscr() addstr("Hello") refresh() napms(1000) endwin()
https://stackoverflow.com/questions/52485416
相似问题