Commit b55182b8 by BellCodeEditor

save project

parent 5cd85036
Showing with 15 additions and 8 deletions
...@@ -6,17 +6,23 @@ S3={"语文":84,"数学":93,"英语":67} ...@@ -6,17 +6,23 @@ S3={"语文":84,"数学":93,"英语":67}
S4={"语文":57,"数学":77,"英语":45} S4={"语文":57,"数学":77,"英语":45}
SS={"悟空":S1,"小贝":S2,"诺依":S3,"小明":S4} SS={"悟空":S1,"小贝":S2,"诺依":S3,"小明":S4}
S2X=0 S2X=0
while True:
while nametrue==0:
SX=input("name") print("请输入要查询的名字,退出请输入q")
SX=input("")
if SX in SS: if SX in SS:
SX=SS[SX] SX=SS[SX]
nametrue=1
print("*"*25) print("*"*25)
for k,v in SX.items():
print(k,v)
elif SX=="q":
print("程序结束")
break
else: else:
print("名字错误!") print("名字错误!")
print("*"*25) print("*"*25)
for k,v in SX.items():
print(k,v) \ 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