我想用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不熟悉,刚刚开始学习,希望各位大侠帮帮忙!
不胜感激!
liuchun12255 于 2011-10-06 21:58:47发表:
有C++,shell基础的话,python没问题。
python语法和lua差不多
congsong1319 于 2011-09-27 23:03:18发表:
python太简单了 开发效率高 运行效率低 python有专门的界面库
linuxunix 于 2011-08-28 11:46:52发表:
慢慢学习先
blueskysee 于 2009-07-01 18:04:30发表:
python相反的,我看不懂,那里面的模块太复杂!
我今天看了下都吐血了!
mingdengzhao 于 2009-07-01 17:03:36发表:
sHELL都写出来了,,,PYTHON看看语法,都是脚本编程。再结合SHELL,应该能搞定它了。
jcmatio 于 2009-07-01 15:14:08发表:
我不懂