摘要: 1 db = {} # 全部地区 2 path = [] # 当前查看的路径["长沙","芙蓉区"] 3 while True: 4 temp = db 5 for item in path: 6 temp = temp[item] 7 print("可以选地区:", list(temp.keys())) 8 # 用户输入命令... 阅读全文
posted @ 2018-10-02 17:13 李海丶 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 1、整型 int 2、字符串 str 3、列表 list 4、元组 tuple 5、字典 dict 6、布尔 bool 阅读全文
posted @ 2018-10-02 12:50 李海丶 阅读(245) 评论(0) 推荐(0) 编辑