Commit ee05bb81 by BellCodeEditor

save project

parent 9711779e
Showing with 9 additions and 12 deletions
#import pygame as pg
#from pygame import locals
import pygame as pg
from pygame import locals
from log import log
# 初始化pygame,为使用pygame做准备
#pg.init()
pg.init()
# 创建一个窗口
#win = pg.display.set_mode((800, 600))
win = pg.display.set_mode((800, 600))
win_log = log()
win_log.att_log("1","t 1")
win_log.att_log("2","t 2")
a = win_log.keyseet("1")
print(a)
#while True:
#for event in pg.event.get():
#if event.type == locals.QUIT:
#exit()
\ No newline at end of file
while True:
for event in pg.event.get():
if event.type == locals.QUIT:
exit()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment