簡單python貪吃蛇程序

import random import curses s = curses.initscr() curses.curs_set(0) sh, sw = s.getmaxyx() w = curses.newwin(sh, sw, 0, 0) w.keypad(1) w.timeout(150) snk_x = sw//4 snk_y = sh//2 snake = [ [snk_y
相關文章
相關標籤/搜索