Commit fe0ebedf by BellCodeEditor

save project

parent 073bd2c9
Showing with 11 additions and 7 deletions
...@@ -2,9 +2,13 @@ tyu={"语文":95,"数学":94,"英语":100} ...@@ -2,9 +2,13 @@ tyu={"语文":95,"数学":94,"英语":100}
ert={"语文":79,"数学":80,"英语":90} ert={"语文":79,"数学":80,"英语":90}
qwe={"语文":89,"数学":78,"英语":78} qwe={"语文":89,"数学":78,"英语":78}
rshi={"悟空":tyu,"蓝色":ert,"250":qwe} rshi={"悟空":tyu,"蓝色":ert,"250":qwe}
nerrt=input("输入人名") while True:
if nerrt in rshi: print("想要退出,输入q")
for t,y in rshi[nerrt].items(): nerrt=input("输入人名")
print(t,y) if nerrt in rshi:
else: for t,y in rshi[nerrt].items():
print("没有这个") print(t,y)
\ No newline at end of file elif nerrt=="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