Setupterm could not find terminal, in Python program using curses

前端 未结 6 1643
礼貌的吻别
礼貌的吻别 2020-11-28 13:07

I am trying to get a simple curses script to run using Python (with PyCharm 2.0).

This is my script:

import curses
stdscr = curses.initscr()
curses.n         


        
6条回答
  •  攒了一身酷
    2020-11-28 13:42

    You'll see this error if you're using Idle. It's because of Idle's default redirection of input/output. Try running your program from the command line. python3 .py

提交回复
热议问题