Commit e28d63de by BellCodeEditor

save project

parent 145ad435
Showing with 20 additions and 9 deletions
a={"语文":26,"数学":40,"英语":64}
b={"语文":62,"数学":37,"英语":77}
b={"语文":89,"数学":72,"英语":100}
c={"语文":89,"数学":72,"英语":100}
store={"悟空":a,"诺依":b,"小白":c}
name=input("名字:")
a=store[name]
for i,s in store.items():
print(i,s)
\ No newline at end of file
while True:
print("输入q退出程序")
name=input("名字:")
print("*"*30)
it name in store:
now_store=store[name]
for i,s in now_store.items():
print(i,s)
print("*"*30)
elif name=="q":
break
else:
print("请重新输入正确名字")
print("*"*30)
print("程序结束")
\ No newline at end of file
wetar{"语文":26,"数学":40,"英语":64}
for i,x in wetar.items:
wetar={"语文":26,"数学":40,"英语":64}
for i,x in wetar.items():
print(i,x)
\ 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