Commit 5cd85036 by BellCodeEditor

save project

parent 4eb499a9
Showing with 14 additions and 3 deletions
nametrue=0
exit=0
S1={"语文":91,"数学":88,"英语":85} S1={"语文":91,"数学":88,"英语":85}
S2={"语文":98,"数学":32,"英语":83} S2={"语文":98,"数学":32,"英语":83}
S3={"语文":84,"数学":93,"英语":67} S3={"语文":84,"数学":93,"英语":67}
S4={"语文":57,"数学":77,"英语":45} S4={"语文":57,"数学":77,"英语":45}
SS={"悟空":S1,"小贝":S2,"诺依":S3,"小明":S4} SS={"悟空":S1,"小贝":S2,"诺依":S3,"小明":S4}
SX=input("name") S2X=0
S2X=SS[SX]
for k,v in S2X.items(): while nametrue==0:
SX=input("name")
if SX in SS:
SX=SS[SX]
nametrue=1
print("*"*25)
else:
print("名字错误!")
print("*"*25)
for k,v in SX.items():
print(k,v) print(k,v)
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