Beispiel #1
0
# -*-coding:Utf-8 -*

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

table(5)  # Appel de la fonction table
Beispiel #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")
Beispiel #3
0
#/usr/bin/python3
# -*- coding: utf-8 -*-

from package.fonctions import table
table(5)

# ou

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

table(5,45)


os.system('pause')

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

from package.fonctions import table

table(7)
Beispiel #9
0
from package.fonctions import table
from os import system

table(5,13)

system("pause")
Beispiel #10
0
from package.fonctions import table
table(10)

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

table(3, 20)
os.system("pause")
Beispiel #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
Beispiel #13
0
from package.fonctions import table
from os import system

table(5, 13)

system("pause")
from package.fonctions import table
table(8)