Commit 59987b62 by BellCodeEditor

save project

parent 31775037
Showing with 13 additions and 6 deletions
...@@ -2,8 +2,15 @@ i1={"数学":99,"语文":67,"英语":100} ...@@ -2,8 +2,15 @@ i1={"数学":99,"语文":67,"英语":100}
i2={"数学":89,"语文":89,"英语":92} i2={"数学":89,"语文":89,"英语":92}
i3={"数学":100,"语文":97,"英语":98} i3={"数学":100,"语文":97,"英语":98}
h={"小明":i1,"小红":i2,"秀秀":i3} h={"小明":i1,"小红":i2,"秀秀":i3}
name=input("你的名字") while True:
if name in h: print("*"*30)
print("你的成绩是"+str(h[name])) name=input("你的名字/(不查了写不差了):")
else: if name=="不查了":
print("名字不在") break
\ No newline at end of file if name in h:
for v,p in h[name].items():
print(v,p)
else:
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