-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase_hub.py
More file actions
34 lines (17 loc) · 793 Bytes
/
database_hub.py
File metadata and controls
34 lines (17 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import mysql.connector
import prettytable
from disiciplina import disiciplina
from professor import professor
from disciplinaxprofessores import disciplinaxprofessores
try:
resp = input(" Deseja manipular qual tabela?? [D] - Disicplina [P] - Professor [DP] - Disiciplina x Professor: ")
while resp != 'D' and resp != 'P' and resp != 'DP':
resp =input("RESPOSTA INVÁLIDA !!! Deseja manipular qual tabela?? [D] - Disicplina [P] - Professor [DP] - Disiciplina x Professor: ")
if resp == 'D':
disiciplina()
elif resp == 'P':
professor()
elif resp == 'DP':
disciplinaxprofessores()
except Exception as erro:
print(f'Erro: {erro}')