1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 # Author;Tsukasa 4 5 6 list_1 = { 7 '广州':{ 8 '越秀区':{ 9 '五羊石像','镇海楼','千年古道北京路' 10 }, 11 '荔湾区':{ 12 '荔枝湾','上下九步行街','陈家祠' 13 }, 14 '海珠区':{ 15 '云桂桥','琶洲塔','赤岗塔' 16 } 17 }, 18 '佛山':{ 19 '禅城区':{ 20 '祖庙','梁园','岭南天地' 21 }, 22 '南海区':{ 23 '西樵山','南国桃园','千灯湖' 24 }, 25 '顺德区':{ 26 '陈村花卉世界','清晖园','西山庙' 27 } 28 }, 29 '中山':{ 30 '小榄':{ 31 '龙山公园','水色匝','菊花会' 32 }, 33 '石岐':{ 34 '中山公园','西山寺','中山市博物馆' 35 }, 36 '东区':{ 37 '利和':['悦儿'], 38 '长江水库':['none'], 39 '紫马岭':['none'], 40 }, 41 } 42 } 43 44 while True: 45 for i in list_1: 46 print(i) 47 user_choice01 = input('1请选择进入>>>:') 48 if user_choice01 in list_1: 49 while True: 50 for i2 in list_1[user_choice01]: 51 print("\t",i2) 52 user_choice02 = input('2请选择进入>>>:') 53 if user_choice02 in list_1[user_choice01]: 54 while True: 55 for i3 in list_1[user_choice01][user_choice02]: 56 print('\t\t',i3) 57 user_choice03 = input('2请选择进入>>>:') 58 if user_choice03 in list_1[user_choice01][user_choice02]: 59 while True: 60 for i4 in list_1[user_choice01][user_choice02][user_choice03]: 61 print('\t\t\t',i4) 62 exit()
转载于:https://www.cnblogs.com/Tsukasa/p/6545216.html
本文提供了一份详细的广东旅游指南,包括广州、佛山和中山等城市的著名景点介绍。广州的越秀区有五羊石像、镇海楼等,荔湾区则推荐荔枝湾、上下九步行街;佛山禅城区有祖庙、梁园等;中山的小榄镇有龙山公园、水色匝等。通过多级菜单选择,可以轻松浏览各个地区的景点。
1万+

被折叠的 条评论
为什么被折叠?



