Update config.py, system.py, and 5 more files...

This commit is contained in:
cheykrym 2024-10-14 21:47:19 +03:00
parent 44c61a4da5
commit 700492ca5f
7 changed files with 41 additions and 0 deletions

1
app/utils/config.py Normal file
View File

@ -0,0 +1 @@
debug=0

10
app/utils/system.py Normal file
View File

@ -0,0 +1,10 @@
import os
import platform
def clear_console():
"""Очистить консоль в зависимости от операционной системы."""
os_name = platform.system()
if os_name == 'Windows':
os.system('cls')
else:
os.system('clear')

0
app/zadachi/zadacha1.py Normal file
View File

0
app/zadachi/zadacha2.py Normal file
View File

0
app/zadachi/zadacha3.py Normal file
View File

28
main.py
View File

@ -0,0 +1,28 @@
from app.utils.config import debug
from app.utils.system import clear_console
#from test_module import *
def main_menu():
clear_console()
while True:
print('\nMain Menu:')
print('1. Start')
print('0. Exit')
choice = input('Select an option: ')
clear_console()
if choice == '1':
#return test()
return
elif choice == '0':
print('Exiting program...')
break
else:
print('Invalid option')
if __name__ == "__main__":
main_menu()

View File

@ -0,0 +1,2 @@
numpy==2.1.2
matplotlib==3.9.2