Commit de05ced6 by BellCodeEditor

save project

parent 7da86a6d
Showing with 16 additions and 14 deletions
stu1 = {"数学":88,"语文":90}
stu2 = {"数学":,"语文":,}
for i in range(10)
print(i)
......@@ -3,13 +3,16 @@ student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("请输入同学姓名:")
if name in score:
info = score[name]
for k,o in info.items():
print(k,o)
print("*"*30)
else:
print(请重新输入)
\ No newline at end of file
while True:
print("请输入同学姓名,推出输入u")
name = input("名字:")
if name in score:
info = score[name]
for k,o in info.items():
print(k,o)
print("*"*30)
elif name=="u":
break
else:
print("请重新输入")
print("程序结束")
\ No newline at end of file
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