Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson9_diy1
This project
Loading...
Sign in
Toggle navigation
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
73586a2b
authored
Apr 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
7c8047c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
my_game.py
record.txt
my_game.py
View file @
73586a2b
a
=
[
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
]
import
json
Json_text
=
'{"a":1,"b":2}'
Json_Dict
=
json
.
loads
(
Json_text
)
print
(
type
(
Json_Dict
))
text
=
json
.
dumps
(
Json_Dict
)
print
(
type
(
text
))
b
=
a
[
1
:
-
3
]
print
(
b
)
\ No newline at end of file
record.txt
View file @
73586a2b
{"第1名": 0, "第2名": 0, "第3名": 0}
\ No newline at end of file
{"第1名": 5, "第2名": 4, "第3名": 2}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment