You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
332 B
12 lines
332 B
import csv
|
|
|
|
def lecture(fichier):
|
|
"""renvoie tableau pour
|
|
traitement par d'autres programmes"""
|
|
tableau = []
|
|
with open(fichier, newline='') as csvfile:
|
|
lecteur = csv.reader(csvfile)
|
|
for ligne in lecteur:
|
|
tableau.append([(ligne[0], ligne[2], ligne[3]), ligne[1]])
|
|
return tableau[1:]
|
|
|
|
|