Commit b396c7af by BellCodeEditor

save project

parent 00f9a440
Showing with 5 additions and 5 deletions
a={"Chinese":100,"maths":98,"English":99} a={"Chinese":100,"maths":98,"English":99}
b={"Chinese":98,"maths":96,"English":94} b={"Chinese":98,"maths":96,"English":94}
c={"Chinese":90,"maths":96,"English":98} c={"Chinese":90,"maths":96,"English":98}
m={"Leo":a,"Smith":b,"Green":c} m={"Leo":a,"Jack":b,"Anna":c}
while True: while True:
print("查询请输入您的姓名,如需退出,请输入quit。") print("查询请输入您的姓名,如需退出,请输入“quit”。")
name=input("What's your name?") name=input("你的姓名是:")
if name in m: if name in m:
s=m[name] s=m[name]
for i,k in s.items(): for i,k in s.items():
...@@ -12,4 +12,4 @@ while True: ...@@ -12,4 +12,4 @@ while True:
elif name=="quit": elif name=="quit":
break break
else: else:
print("Please try again!") print("请再试一次!")
\ No newline at end of file \ 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