Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson9_diy1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit cc5f0e67 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 4b461f3e
Hide whitespace changes
Inline Side-by-side
Showing with 3 additions and 10 deletions
  • bffbvdsbcdbcjaf wenqdjnqdjdcjwdncjkwdnckjsdcsdcnsdcdsjncjsdn.py
  • my_game.py
  • score.txt
bffbvdsbcdbcjaf wenqdjnqdjdcjwdncjkwdnckjsdcsdcnsdcdsjncjsdn.py
View file @ cc5f0e67
import json
j='{"第一名":122,"第二名":119,"第三名":100}'
text=json.loads(j)
print("第一名",text["第一名"])
print("第二名",text["第二名"])
print("第三名",text["第三名"])
\ No newline at end of file
This diff is collapsed. Click to expand it.
my_game.py
View file @ cc5f0e67
......@@ -4,7 +4,7 @@ import random
import json
score=0
pygame.init() # 初始化
speed=20
speed=30
class Block(pygame.sprite.Sprite): # 障碍物精灵类
def __init__(self,image1,image2,image3):
super().__init__()
......
This diff is collapsed. Click to expand it.
score.txt
View file @ cc5f0e67
{"第1名": 8, "第2名": 0, "第3名": 0}
\ No newline at end of file
{"第1名": 11, "第2名": 0, "第3名": 0}
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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