Date = {
' Beijing ': {
"Changping": {
"Shahe": ["Old boy", "Test"],
"Tian Tong Yuan": ["Chain Home Property", "I love my Home"]
},
"Chaoyang": {
"Wangjing": ["Mercedes", "Mo Mo"],
"Guomao": ["CICC", "HP"],
"Dongzhimen": ["Adevent", "fetion"]
},
"Haidian": {},
},
' Shandong ': {
"Texas": {},
},
' Guangdong ': {
"Dongguan": {},
"Changshu": {},
"Foshan": {},
},
}
Exit_flag = False
While not exit_flag:
For I in Date:
Print (i)
Choice = input ("Select Enter 1>>:")
If choice in Date:
While not exit_flag:
For I2 in Date[choice]:
Print ("\ T", I2)
Choice2 = Input ("Select Enter 2>>:")
If Choice2 in Date[choice]:
While not exit_flag:
For i3 in Date[choice][choice2]:
Print ("\t\t", i3)
Choice3 = Input ("Select Enter 3>>:")
If Choice3 in Date[choice][choice2]:
For I4 in Date[choice][choice2][choice3]:
Print ("\t\t", I4)
Choice4 = input ("Last layer, press B to return >>:")
if Choice4 = = "B":
Pass
elif Choice4 = = "Q":
Exit_flag = True
A python program