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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| # Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
# Type "copyright", "credits" or "license()" for more information.
# import random
import os
os.system("clear")
################# un ##################
def pun():
print("J ai fait appel a ma premiere procedure !")
print("Je suis vraiment content !")
# execfile("Recherche_Contact_pun.py")
################# deux ##################
def pdeux():
print("J ai fait appel a ma deuxieme procedure !")
print("Je suis vraiment content !")
# execfile("Ajout_Contact_pdeux.py")
################# trois ##################
def ptrois():
print("J ai fait appel a ma troisieme procedure !")
print("Je suis vraiment content !")
# execfile("Ajout_Info_Contact_ptrois.py")
################# quatre ##################
def pquatre():
print("Merci ! au revoir. ")
exit
fin=input("Appuyez sur ENTRER pour quitter")
###################### MENU ##########################
def menu():
print(" #####################################")
print(" #### Menu ####")
print(" #####################################")
print(" # #")
print(" # 1.un #")
print(" # 2.deux #")
print(" # 3.trois #")
print(" # 4.fin #")
print(" # #")
print(" #####################################")
################### main ####################
menu()
print(" ")
choix=input("faites votre choix : ")
if choix=="1":
pun()
if choix=='2':
pdeux()
if choix=='3':
ptrois()
if choix=='4':
pquatre() |
Partager