Python开发-day21-函数作业和模块

 

 1 # -*- coding:utf-8 -*-
 2 # @Time:2022/4/7 16:07
 3 # @Author:Henry Scofield
 4 # @File:test.py
 5 # @Software:PyCharm
 6 tag = True
 7 while tag:
 8     print("level")
 9     choice = input("level1>>:").strip()
10     if choice == 'quit':break
11     if choice == 'quit_all': tag = False
12     while tag:
13         print("level2")
14         choice = input("level2>>:").strip()
15         if choice == 'quit': break
16         if choice == 'quit_all': tag = False
17         while tag:
18             print("level3")
19             choice = input("level3>>:").strip()
20             if choice == 'quit': break
21             if choice == 'quit_all': tag = False
tag标识

 

posted on 2022-04-07 16:45  henry06007  阅读(9)  评论(0编辑  收藏  举报