Commit f1edd831 by BellCodeEditor

auto save

parent e4124d1b
Showing with 17 additions and 1 deletions
import pygame
from pygame import locals
import random
import json
pygame.init() # 初始化
class Block(pygame.sprite.Sprite): # 障碍物精灵类
......@@ -52,6 +52,13 @@ gamestate = True
block_list =pygame.sprite.Group() # 创建精灵组
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
import json
jsonData = '{"第一名":1,"第二名":2,"第三名":3}'
text = json.loads(jsonData)
print("第一名:",text["第一名"])
print("第二名:",text["第二名"])
print("第三名:",text["第三名"])
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