Commit 5dbaeb12 by BellCodeEditor

save project

parent 8c386633
Showing with 10 additions and 0 deletions
import pygame
from pygame import locals
import random
import json
pygame.init() # 初始化
......@@ -57,6 +58,13 @@ old_score = score
block_list =pygame.sprite.Group() # 创建精灵组
with open('score.txt','r',encoding='utf-8')as f:
content = f.read()
record = json.locals(content)
one = content["第1名"]
two = content["第2名"]
three = content["第3名"]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
{"第1名": 0, "第2名": 0, "第3名": 0}
\ 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