Exemplo n.º 1
0
# -*-coding:Utf-8 -*

from package.fonctions import table  # ou bien import package.fonctions

table(5)  # Appel de la fonction table
Exemplo n.º 2
0
# -*-coding:Latin-1 -*
import os

from package.fonctions import table
table(5) # Appel de la fonction table

# Ou ...
# import package.fonctions
# package.fonctions.table(5)  # Appel de la fonction table

os.system("pause")
Exemplo n.º 3
0
#/usr/bin/python3
# -*- coding: utf-8 -*-

from package.fonctions import table
table(5)

# ou

import package.fonctions
package.fonctions.table(6)
Exemplo n.º 4
0
from package.fonctions import table
table()
Exemplo n.º 5
0
from package.fonctions import table
table(5)
Exemplo n.º 6
0
# -*-coding:Latin-1 -*
""" Fichier de test des modules
"""
import os
from package.fonctions import table

table(5,45)


os.system('pause')

Exemplo n.º 7
0
#!/usr/bin/python2.6
# -*- coding : utf-8 -*
from package.fonctions import table
table()
Exemplo n.º 8
0
# -*- coding: latin-1 -*-

from package.fonctions import table

table(7)
Exemplo n.º 9
0
from package.fonctions import table
from os import system

table(5,13)

system("pause")
Exemplo n.º 10
0
from package.fonctions import table
table(10)

import package.fonctions
package.fonctions.table(10)
Exemplo n.º 11
0
#-*-coding:utf-8 -*
import os
from package.fonctions import table

table(3, 20)
os.system("pause")
Exemplo n.º 12
0
try:
    import package.fonctions
    fonctions.table(nb)  # Appel de la fonction table
    assert nb < 0

except NameError:
    print("La variable n'a pas été définie.")

except TypeError:
    print("La variable possède un type incompatible avec la division.")

except ZeroDivisionError:
    print("La variable est égale à 0.")

finally:
    from package.fonctions import table
    table(5)  # Appel de la fonction table
Exemplo n.º 13
0
from package.fonctions import table
from os import system

table(5, 13)

system("pause")
Exemplo n.º 14
0
from package.fonctions import table
table(8)