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
327 B

5 months ago
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