Date2

Posted genghenggao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Date2相关的知识,希望对你有一定的参考价值。

技术分享图片
#Author:Brill
data = {"Beijing":{
    "Chaoyang":{
        "Shahe":{},"Tiantongyuan":{}
    },"Haiding":{},"Changping":{}
},"Nanjing":{"Xinjiekou":{},"Muxuyuan":{}},"Shanghai":{}}

exit_flag = False

while not exit_flag:
    for i in data:
        print(i)

    choice = input("Please enter1 :")
    if choice in data:
        while not exit_flag:
            for i2 in data[choice]:
                print("\t",i2)
            choice2 = input("Please enter2:")
            if choice2 in data[choice]:
                while not exit_flag:
                    for i3 in data[choice][choice2]:
                        print("\t\t",i3)
                    choice3 = input("Please enter3:")
                    if choice3 in data[choice][choice2]:
                        for i4 in data[choice][choice2][choice3]:
                            print("\t\t",i4)
                        choice4 = input("Please write B to back")
                        if choice4 == "B":
                            pass
                        elif choice4 =="Q":
                            exit_flag = True
                    if choice3 == "B":
                        break
                    elif choice3 == "Q":
                        exit_flag = True
            if choice2 == "B":
                break
            elif choice2 == "Q":
                exit_flag = True
View Code
#Author:Brill
data = {"Beijing":{
"Chaoyang":{
"Shahe":{},"Tiantongyuan":{}
},"Haiding":{},"Changping":{}
},"Nanjing":{"Xinjiekou":{},"Muxuyuan":{}},"Shanghai":{}}

exit_flag = False

while not exit_flag:
for i in data:
print(i)

choice = input("Please enter1 :")
if choice in data:
while not exit_flag:
for i2 in data[choice]:
print("\t",i2)
choice2 = input("Please enter2:")
if choice2 in data[choice]:
while not exit_flag:
for i3 in data[choice][choice2]:
print("\t\t",i3)
choice3 = input("Please enter3:")
if choice3 in data[choice][choice2]:
for i4 in data[choice][choice2][choice3]:
print("\t\t",i4)
choice4 = input("Please write B to back")
if choice4 == "B":
pass
elif choice4 =="Q":
exit_flag = True
if choice3 == "B":
break
elif choice3 == "Q":
exit_flag = True
if choice2 == "B":
break
elif choice2 == "Q":
exit_flag = True






















































以上是关于Date2的主要内容,如果未能解决你的问题,请参考以下文章

Date2

在两个日期之间计算 plsql 中的星期日:date1 和:date2

如何通过(开始<=日期和结束>=日期1)|| (start <= date and end >= date2) laravel 中的条件

Android - SQLite - 在 Date1 和 Date2 之间选择

mysql语句如何构造一个日期?

PostgreSQL SELECT date在date1和date2之间