#Author: GE Jian
data = {
‘Beijing‘:{
‘Changping‘:{
‘Shahe‘:[' Oldboy ',' Test '],
‘Tin Tong Court‘:[‘Chain Home‘,‘I love my family.‘]
},
‘Chao yang‘:{
‘Wangjing‘:[‘Benz‘,‘Mo mo‘],
‘International trade‘:[' CICC ',' HP '],
},
}
}
Exit_flag =False
While not exit_flag:
For IIn data:
Print (i)
Choice =Input‘Select input1》》:‘)
If choiceIn data:
While not exit_flag:
For JIn Data[choice]:
Print‘\ t', j)
Choice1 =Input‘Select input2》》:‘)
If Choice1In Data[choice]:
While not exit_flag:
For KIn Data[choice][choice1]:
Print‘\t\t', K)
Choice2 =Input‘Select input3》》:‘)
If Choice2In Data[choice][choice1]:
For LIn Data[choice][choice1][choice2]:
Print‘\t\t', L)
Choice3 =Input‘Last line, pressBExit‘)
If choice3==' B ':
Pass
Elif choice3==' Q ':
Exit_flag =True
if Choice2 = =' B ':
Break
elif Choice2 = = ' Q ':
Exit_flag = true
if Choice1 = = ' B ':
Elif Choice1 = ' Q ':
Exit_flag = true
else:
Exit_flag = true
Python fifth day