Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_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
6f4c8833
authored
Jan 30, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4a98a9b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
加法运算.py
加法运算.py
View file @
6f4c8833
A
=
int
(
input
(
"请输入学生人数:"
))
a
=
int
(
input
(
"请输入学生人数:"
))
A
=
int
(
input
(
"请输入学生人数:"
))
a
=
int
(
input
(
"请输入学生人数:"
))
B
=
[]
b
=
{}
for
i
in
range
(
A
):
for
i
in
range
(
a
):
C
=
int
(
input
(
"学生成绩:"
))
e
=
input
(
"请输入学生姓名:"
)
B
.
append
(
C
)
b
[
e
]
=
int
(
input
(
"请输入学生成绩:"
))
print
(
B
)
print
(
b
)
top1e
=
""
top1
=
0
top1
=
0
for
i
in
B
:
for
k
,
v
in
b
.
items
()
:
if
top1
<
i
:
if
top1
<
=
v
:
top1
=
i
top1
=
v
print
(
top1
)
top1e
=
k
print
(
"第一名是"
+
top1e
,
"他的得分是"
+
str
(
top1
))
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