Commit cc6991da by BellCodeEditor

save project

parent 3f4dabeb
Showing with 41 additions and 0 deletions
a=('z':91,'x':88,'c':85)
b=('z':97,'x':98,'c':90)
d=('z':95,'x':100,'c':93)
score=('悟空':a,'诺依':b,'小贝':d)
while True:
print('请输入要查询的名字,退出请输入q')
name=input('姓名')
print('*' * 30)
if name in score:
info=score[name]
for k,v in info.items():
print(k,v)
print('*' * 30)
elif name =='q':
break
else:
print('查询错误,请重新输入')
print("*"*30)
print('程序结束')
a={'z':91,'x':88,'c':85}
b={'z':97,'x':98,'c':90}
d={'z':95,'x':100,'c':93}
score={'悟空':a,'诺依':b,'小贝':d}
while True:
print('请输入要查询的名字,退出请输入q')
name=input('姓名')
print('*' * 30)
if name in score:
info=score[name]
for k,v in info.items():
print(k,v)
print('*' * 30)
elif name =='q':
break
else:
print('查询错误,请重新输入')
print("*"*30)
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