Commit 8279a1ea by BellCodeEditor

save project

parent 3c235f50
Showing with 10 additions and 8 deletions
......@@ -3,10 +3,12 @@ a2={"语文":97,"数学":90}
a3={"语文":95,"数学":93}
score={"a":a1,"b":a2,"c":a3}
k=input()
if k in score:
print("*"*30)
for d,v in score[k]:
print(d,v)
print("*"*30)
else:
print("错误"))
\ No newline at end of file
while True:
if k in score:
print("*"*30)
for d,v in score[k]:
print(d,v)
elif k=="q":
break
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