Commit 9c6bfc30 by BellCodeEditor

save project

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