【发布时间】:2020-02-22 09:48:36
【问题描述】:
我不能使用 █ 字符作为诅咒边框。
代码示例:
import curses
stdscr = curses.initscr()
c = '█'
stdscr.border(c, c, c, c, c, c, c, c)
stdscr.getch()
我收到此错误:
溢出错误:字节不适合 chtype
但是我可以使用addstr 来写一些像这样的 utf-8 字符:
stdscr.addstr(0, 0, "█")
感谢您的帮助。
【问题讨论】:
标签: python python-3.x ubuntu-18.04 gnome-terminal python-curses