Commit 3da41295 by BellCodeEditor

save project

parent 977d87d2
class log:
def __init__(self):
self.log = {}
self.lognum = 0
def att_log(self, log_key, log_word):
self.lognum = self.lognum + 1
self.log[log_key] = log_word
\ No newline at end of file
import pygame as pg import pygame as pg
from log import log
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pg.init() pg.init()
# 创建一个窗口 # 创建一个窗口
win = pg.display.set_mode((800, 600)) win = pg.display.set_mode((800, 600))
print(win) win_log = log()
\ 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