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.
21 lines
707 B
21 lines
707 B
def lecture(name):
|
|
"""lit le fichier csv dont le nom est passé en paramètre, en renvoie trois tableau contenant
|
|
respectivement la longueur et la largeur des pétales, et l'espèce de l'iris."""
|
|
lst_date = []
|
|
lst_pic = []
|
|
lst_temp_moy = []
|
|
lst_temp_ref = []
|
|
with open(name) as fic:
|
|
fic.readline()
|
|
for ligne in fic:
|
|
date, pic, temp_moy, temp_ref = ligne.split(';')
|
|
lst_date.append(date)
|
|
lst_pic.append(float(pic))
|
|
lst_temp_moy.append(float(temp_moy))
|
|
lst_temp_ref.append(float(temp_ref))
|
|
|
|
|
|
return lst_date, lst_pic, lst_temp_moy, lst_temp_ref
|
|
|
|
print(lecture("jeuTests.csv"))
|
|
|