示例#1
0
        print("Файл сформовано ...")


while True:

    system('clear')
    print(MAIN_MENU)
    command_number = input("Введіть номер команди: ")

    if command_number == '0':
        print('\nПрограмма завершила роботу')
        exit(0)

    elif command_number == '1':
        zajavka_list = create_zajavka_list()
        show_table_on_screen(zajavka_list)
        input(STOP_MESSAGE)

    elif command_number == '2':
        zajavka_list = create_zajavka_list()
        write_zajavka(zajavka_list)
        input(STOP_MESSAGE)

    elif command_number == '3':
        orders = get_orders()
        show_orders(orders)
        input(STOP_MESSAGE)

    elif command_number == '4':
        cliens = get_clients()
示例#2
0
文件: main.py 项目: DaGGGe/HWW

while True:

    # вивід головного меню
    os.system('clear')
    print(MAIN_MENU)
    command_number = input('Введіть номер команди: ')

    # обробка команд користувача
    if command_number == '0':
        print("\nПрограма завершила роботу")
        exit(0)

    elif command_number == '1':
        create_zajavka_list = create_zajavka_list()
        show_zajavka(create_zajavka_list())
        input(STOP_MESSAGE)

    elif command_number == '2':
        zajavka_list = create_zajavka()
        write_zajavka(zajavka_list)
        input(STOP_MESSAGE)

    elif command_number == '3':
        show_orders(get_orders())
        input(STOP_MESSAGE)

    elif command_number == '4':
        show_clients(get_clients())
        input(STOP_MESSAGE)