Commit 6f4c8833 by BellCodeEditor

save project

parent 4a98a9b1
Showing with 13 additions and 12 deletions
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))
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