Update config.py, system.py, and 5 more files...
This commit is contained in:
		
							parent
							
								
									44c61a4da5
								
							
						
					
					
						commit
						700492ca5f
					
				
							
								
								
									
										1
									
								
								app/utils/config.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/utils/config.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
debug=0
 | 
			
		||||
							
								
								
									
										10
									
								
								app/utils/system.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								app/utils/system.py
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										0
									
								
								app/zadachi/zadacha1.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								app/zadachi/zadacha2.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								app/zadachi/zadacha2.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								app/zadachi/zadacha3.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								app/zadachi/zadacha3.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										28
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								main.py
									
									
									
									
									
								
							@ -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()
 | 
			
		||||
@ -0,0 +1,2 @@
 | 
			
		||||
numpy==2.1.2
 | 
			
		||||
matplotlib==3.9.2
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user