How to Use python to write menus in linux

Source: Internet
Author: User
How to Use python to compile the menu under linux-Linux general technology-Linux programming and kernel information. The following is a detailed description. I want to write a menu in python, But how should I write multiple menus? If you have any experts, please consult.
The following is my menu framework:

Main Menu ----------------------------------------------------------------------------------
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:
Bytes -----------------------------------------------------------------------------------------
Sub menu in 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:

Bytes -----------------------------------------------------------------------------------------
3. Sub-menu:
========================================================== ==========
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:
Bytes -----------------------------------------------------------------------------------------

The framework under shell has been written, that is, the company now requires to write it in python. I am not familiar with python. I just started learning. I hope you can help me!
Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.