Requirements: 1, three level menu 2, you can choose to enter the sub-menu, select the serial number into the directory 3, enter B to return to the parent directory, q exit Change directory code implementation: #! /bin/env python#!--*--coding:utf-8--*--#----*auth:freem*import sys#flag=true#def flas (): #flag =false; #定义字典包括, Country, State (province), City dic={' China ': {' Hebei ':(' Shijiazhuang ', ' Xingtai ', ' Hengshui ', ' Beijing ':(' changping ', ' Haidian ', ' Chaoyang ', '), ' Shanxi ':(' Taiyuan ', ' Datong ', ' Yun Cheng ',
1. Python Three-level catalog presentation method
Introduction: This article mainly introduces the Python three-level directory display of the implementation of the relevant information, this article through an illustrated way to introduce, very good, with reference value, the need for friends can refer to the next
2. thinkphp Array Merging
Introduction: Problems encountered in doing infinite classification according to the ID of the first level directory to read all of the three level directories contained in the primary directory after the Foreach loop is read out is 5 arrays, how can be combined into an array of using the Array_merge () function, but the result is still 5 arrays, No merge succeeded. {...
3. PHP set up multi-level directory session Problem _php tutorial
Introduction: The problem of setting a multilevel directory session in PHP. Locate Session.save_path in php.ini to set the value to Session.save_path = ' 3;/tmp/session '; You can open the three level directory save session. However, PHP does not automatically generate a directory structure, which can be
4. PHP Multilevel Navigator Display
Introduction: PHP Multilevel navigation Display write once, think once ... Do it again ...? Here we go. Later use directly to copy. The first paragraph of code gets the category to be displayed. Level directory in Categories[0], level two directory in categories[1], level three directory in categories[2],.... And so on, but generally up to level 3 is no longer down. $cpath = Array (
5. PHP Multilevel Navigator Display
Introduction: PHP Multilevel navigation Display write once, think once ... Do it again ...? Here we go. Later use directly to copy. The first paragraph of code gets the category to be displayed. Level directory in Categories[0], level two directory in categories[1], level three directory in categories[2],.... And so on, but generally up to level 3 is no longer down. $cpath = Array (); if (!em
"Related question and answer recommendation":
Angular.js-ionic three level directory and even multi-level directory How to hide tabs?
thinkphp-php Array Merging
Python-why is recursive incomplete when searching for files?