Commit 6f4c8833 by BellCodeEditor

save project

parent 4a98a9b1
Showing with 13 additions and 12 deletions
A=int(input("请输入学生人数:"))
a=int(input("请输入学生人数:"))
A=int(input("请输入学生人数:"))
B=[]
for i in range(A):
C=int(input("学生成绩:"))
B.append(C)
print(B)
a=int(input("请输入学生人数:"))
b={}
for i in range(a):
e=input("请输入学生姓名:")
b[e]=int(input("请输入学生成绩:"))
print(b)
top1e=""
top1=0
for i in B:
if top1<i:
top1=i
print(top1)
for k,v in b.items():
if top1<=v:
top1=v
top1e=k
print("第一名是"+top1e,"他的得分是"+str(top1))
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