Commit 9c6bfc30 by BellCodeEditor

save project

parent e59ee1b1
Showing with 14 additions and 8 deletions
...@@ -2,10 +2,16 @@ a={"语文":100,"英语":100} ...@@ -2,10 +2,16 @@ a={"语文":100,"英语":100}
b={"语文":10,"英语":0} b={"语文":10,"英语":0}
c={"语文":6,"英语":9} c={"语文":6,"英语":9}
x={"A":a,"B":b,"C":c} x={"A":a,"B":b,"C":c}
z=input("你叫什么名字?") while True:
y=x[z] z=input("你叫什么名字?")
if z in x: if z in x:
for i,g in y.items(): y=x[z]
print(i,g) print("-"*30)
else: for i,g in y.items():
print("错误") print(i,g)
\ No newline at end of file print("-"*30)
elif z=="q":
break
else:
print("错误")
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