Here is my code.
import curses curses.initscr() win = curses.newwin(20, 60, 0, 0) win.keypad(1) curses.noecho() curses.curs_set(0) win.border(0) win.nodelay(1) #-1
This code returns this error Exception has occurred: error curses function returned NULL File "C:\Users\ericw\OneDrive\Desktop\Snake\snake.py", line 10, in win = curses.newwin(20, 60, 0, 0)
can anyone help me?
https://stackoverflow.com/questions/66810065/python-curses-module-error-curses-function-returning-null March 26, 2021 at 10:02AM
没有评论:
发表评论