A python program

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.