英文:
Python curses import error: 'from curses import ACS_DARROW, ACS_LARROW, ACS_RARROW, ACS_UARROW' not working
问题
尝试导入 _curses 和 curses 但都不起作用。
英文:
File "C:\Users\a small youtuber idk\Downloads\from curses import ACS_RARROW.py", line 2, in <module>
from curses import ACS_DARROW, ACS_LARROW, ACS_RARROW, ACS_UARROW
i tried importing _curses and curses but nothg is working
答案1
得分: 1
如果您查看https://docs.python.org/3/library/curses.html上的文档,您会看到:
注意:只有在调用initscr()之后才可用。
这些值在不同操作系统上是不同的,因此模块必须向底层库请求正确的值。
英文:
If you check the documentation at https://docs.python.org/3/library/curses.html, you'll see:
Note: These are available only after initscr() has been called.
The values are different on different operating systems, so the module has to ask the underlying library for the correct values.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论