Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-5
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
d9fd4b89
authored
Feb 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5ef5dbb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
dsg.py
py
dsg.py
0 → 100644
View file @
d9fd4b89
cj
=
{}
k
=
input
(
"名字是什么?"
)
v
=
input
(
"成绩是多少"
)
if
k
in
cj
:
if
int
(
v
)
>
cj
[
k
]:
cj
[
k
]
=
int
(
v
)
print
(
"更新"
+
k
+
"的成绩完成"
)
else
:
print
(
"不需要"
)
else
:
cj
[
k
]
=
int
(
v
)
print
(
"添加"
+
k
+
"的成绩完成"
)
\ No newline at end of file
py
View file @
d9fd4b89
-- "a/\357\275\220\357\275\231"
cj={}
cj={}
k=input()
v=input
if k in
\ 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