while True:print('=' * 10)print('1.登录')print('2.退出')print('=' * 10)mc1 = int(input('输入菜单号:'))if mc1 == 1:while True:print('主菜单')print('=' * 12)print('1.添加记录')print('2.查询记录')print('3.修改记录')print('4.删除记录')print('5.返回上级')print('=' * 12)mc2 = int(input('输入菜单号'))if mc2 == 1:print('添加功能尚待开发~')elif mc2 == 2:print('查询记录功能尚待开发~')elif mc2 == 3:print('修改记录功能尚待开发~')elif mc2 == 4:print('删除记录功能尚待开发~')elif mc2 == 5:breakelse:print('输入的菜单号有误!')elif mc1 == 2:print('谢谢使用!')breakelse:print('输入的菜单号有误!')
详细解决方案
用python 进退菜单系统
热度:5 发布时间:2024-01-21 03:11:20.0
相关解决方案
- ubuntu9.04上安装mic2 出错 (python setup.py build)
- ubuntu9.04下安装mic2 出错 (python setup.py build),该如何解决
- python sybase装配
- python(django框架) + mysql 的编码有关问题,求解
- SAE python web.py bootstrap 开发记要
- 数目字代码把大数据数字口语化(python+js) 数字代码
- python JSON string 的中文有关问题
- python――施用yaml数据格式,PK -> XML,JSON
- Learn Python The Hard Way学习(52) - 开始您的web游戏
- Python 相关有关问题
- 菜鸟,先学JAVA,还是Ruby,python
- 【大哥大姐】python 操作MS SQL Server 2005 效率
- python serial模块运用
- python scp自动登录解决方法
- 【Python】按行读取文件、IOError: [Errno 22] invalid mode ('a+') or filename,处置文件的换行符
- Python 3.x中使用print函数出现语法异常(SyntaxError: invalid syntax)的原因
- 【Error】Python安装gevent时出错:“致命异常: Python.h:没有那个文件或目录”
- [Python]attributeError:'module' object has no attribute 'dump'
- Python 出错:IndentationError: unexpected indent
- Python“TypeError: 'NoneType' object is not iterable"的缘故
- python in操作挑动 TypeError
- 【Error】Python:SyntaxError: Non-ASCII character '\xe5'解决办法
- python 有什么 步骤可以知道函数或类在哪个文件定义的
- Python 将数组转换为 Wav
- Python:文件格式不正确
- 如何在 Bash 的 python 解释器中运行 python 脚本
- python-改进脚本和异常处理
- Python(附加列表时出现内存错误)
- Python:另存为字符串时,保存数字错误
- Python:如何编写代码序列?