ajout début menu

This commit is contained in:
Alice 2018-03-25 21:06:12 +02:00
parent 83e95086ca
commit acd68838f1

View file

@ -8,4 +8,18 @@ Created on Sun Mar 25 18:20:49 2018
from cineclubBlogSQ import filmSQ as f from cineclubBlogSQ import filmSQ as f
f.printAll() def main():
menu()
pass
def menu():
champ = eval(input("""Voulez-vous \n 1: consulter la liste des films de la base de données \n 2: ajouter un film à la base de données \n afficher une communication"""))
if champ == 1:
f.printAll()
elif champ == 2:
f.newFilm()
elif champ == 3:
pass
pass
main()