Commit cd60717f by BellCodeEditor

save project

parent c72eb29c
Showing with 12 additions and 4 deletions
......@@ -3,6 +3,14 @@ score2 = {'語文':97,'數學':98,'英語':90}
score3 = {'語文':95,'數學':100,'英語':93}
sopojitui={'悟空':score1,'諾伊':score2,'小寶':score3}
name = input("名字")
info=sopojitui[name]
for k,v in info.items():
print(k,v)
\ No newline at end of file
print("*"*30)
if name in sopojitui:
info=sopojitui[name]
elif name=="q"
for k,v in info.items():
print(k,v)
print("*"*30)
print("結束")
break
else:
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