Python curses import error: 'from curses import ACS_DARROW, ACS_LARROW, ACS_RARROW, ACS_UARROW' not working

huangapple go评论61阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月2日 06:26:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76386090.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定