Commit 295ef3fc by BellCodeEditor

save project

parent 1b892067
Showing with 18 additions and 0 deletions
stu1={"chinese":0,"maths":1,"english":2}
stu2={"chinese":3,"maths":4,"english":5}
stu3={"chinese":6,"maths":7,"english":8}
w={"stu1":stu1,"stu2":stu2,"stu3":stu3}
while True:
n=input("input name ")
print("*"*30)
if n in w:
info=w[n]
for i,j in info.items():
print(i,j)
elif n=="q":
print("exit program")
break
else:
print("input right string!")
print("*"*30)
\ 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