Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson1_3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • pygame_lesson1_3
  • snake.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 0b2d5aa6
    BellCodeEditor committed 2 years ago
    0b2d5aa6
snake.py 262 Bytes
1 2 3 4 5 6 7 8 9 10 11 12
import pygame
from pygame import locals

# 初始化pygame,为使用pygame做准备
pygame.init()

# 创建一个窗口
pygame.display.set_mode((660,480))
while True:
    for event in pygame.event.get():
        if event.type == locals.QUIT:
            exit()