Commit cc5f0e67 by BellCodeEditor

save project

parent 4b461f3e
import json
j='{"第一名":122,"第二名":119,"第三名":100}'
text=json.loads(j)
print("第一名",text["第一名"])
print("第二名",text["第二名"])
print("第三名",text["第三名"])
\ No newline at end of file
...@@ -4,7 +4,7 @@ import random ...@@ -4,7 +4,7 @@ import random
import json import json
score=0 score=0
pygame.init() # 初始化 pygame.init() # 初始化
speed=20 speed=30
class Block(pygame.sprite.Sprite): # 障碍物精灵类 class Block(pygame.sprite.Sprite): # 障碍物精灵类
def __init__(self,image1,image2,image3): def __init__(self,image1,image2,image3):
super().__init__() super().__init__()
......
{"第1名": 8, "第2名": 0, "第3名": 0} {"第1名": 11, "第2名": 0, "第3名": 0}
\ No newline at end of file \ 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