怎么用python在linux下编写菜单
时间:2009-07-01
来源:互联网
我想用python编写以个菜单,但是多重的菜单应该怎么写?有没高手请教下。
下面是我菜单的框架:
主菜单----------------------------------------------------------------------------------
Welcome to install V2 program
=================================================
Make a Choice from the Menu below
0 Return to Linux
1 View parameter file
2 Install Basic service
3 Install Application service
Enter Choice:
-----------------------------------------------------------------------------------------
2中的子菜单:
=================================================
Make a Choice from the Menu below
0 Return to main menu
1 Install MySQL Database
2 Install PostgreSQL Database
3 Install Web Service
Enter Choice:
-----------------------------------------------------------------------------------------
3中的子菜单:
=================================================
Make a Choice from the Menu below
0 Return to main menu
1 install i-TVsite service
2 install i-Tvcenter service
3 install i-Studio service
4 install i-Streaming service
5 install i-Gateway service
Enter Choice:
-----------------------------------------------------------------------------------------
shell下的框架已经写好了,就是现在公司要求用python编写。我对python不熟悉,刚刚开始学习,希望各位大侠帮帮忙!
不胜感激!
下面是我菜单的框架:
主菜单----------------------------------------------------------------------------------
Welcome to install V2 program
=================================================
Make a Choice from the Menu below
0 Return to Linux
1 View parameter file
2 Install Basic service
3 Install Application service
Enter Choice:
-----------------------------------------------------------------------------------------
2中的子菜单:
=================================================
Make a Choice from the Menu below
0 Return to main menu
1 Install MySQL Database
2 Install PostgreSQL Database
3 Install Web Service
Enter Choice:
-----------------------------------------------------------------------------------------
3中的子菜单:
=================================================
Make a Choice from the Menu below
0 Return to main menu
1 install i-TVsite service
2 install i-Tvcenter service
3 install i-Studio service
4 install i-Streaming service
5 install i-Gateway service
Enter Choice:
-----------------------------------------------------------------------------------------
shell下的框架已经写好了,就是现在公司要求用python编写。我对python不熟悉,刚刚开始学习,希望各位大侠帮帮忙!
不胜感激!
作者: blueskysee 发布时间: 2009-07-01
我不懂
作者: jcmatio 发布时间: 2009-07-01
sHELL都写出来了,,,PYTHON看看语法,都是脚本编程。再结合SHELL,应该能搞定它了。
作者: mingdengzhao 发布时间: 2009-07-01
python相反的,我看不懂,那里面的模块太复杂!
我今天看了下都吐血了!
我今天看了下都吐血了!
作者: blueskysee 发布时间: 2009-07-01
慢慢学习先
作者: linuxunix 发布时间: 2011-08-28
python太简单了 开发效率高 运行效率低 python有专门的界面库
作者: congsong1319 发布时间: 2011-09-27
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28