summaryrefslogtreecommitdiff
path: root/gestionOMS.py
diff options
context:
space:
mode:
Diffstat (limited to 'gestionOMS.py')
-rw-r--r--gestionOMS.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gestionOMS.py b/gestionOMS.py
index b00b93b..8c2b910 100644
--- a/gestionOMS.py
+++ b/gestionOMS.py
@@ -81,9 +81,11 @@ def lire_fichier_csv(fichier):
81 return table 81 return table
82 82
83 83
84def extraire_colonne(table,ncol,maxi): 84def extraire_colonne(table,ncol,maxi=-1):
85 """ extrait une colonne d'un tableau double, de taille maximum maxi""" 85 """ extrait une colonne d'un tableau double, de taille maximum maxi"""
86 t = [] 86 t = []
87 if maxi==-1:
88 maxi = len(table)
87 for i in range( min(len(table),maxi) ): 89 for i in range( min(len(table),maxi) ):
88 t.append(table[i][ncol]) 90 t.append(table[i][ncol])
89 return t 91 return t