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.
33 lines
849 B
33 lines
849 B
|
|
def lecture(name):
|
|
"Ouvre le fichier csv et renvoie un tableau"
|
|
lst_date = []
|
|
lst_pic = []
|
|
lst_temp_moy = []
|
|
lst_temp_ref = []
|
|
lst_données = []
|
|
with open(name) as fic:
|
|
fic.readline()
|
|
for ligne in fic:
|
|
date, pic, temp_moy, temp_ref = ligne.split(',')
|
|
lst_date.append(str(date))
|
|
lst_pic.append(float(pic))
|
|
lst_temp_moy.append(float(temp_moy))
|
|
lst_temp_ref.append(float(temp_ref))
|
|
lst_données.append(lst_date)
|
|
lst_données.append(lst_pic)
|
|
lst_données.append(lst_temp_moy)
|
|
lst_données.append(lst_temp_ref)
|
|
return lst_données
|
|
|
|
|
|
def numeroJour(date):
|
|
année, mois, jour = date.split('-')
|
|
|
|
|
|
|
|
|
|
|
|
données = lecture("jeuTests.csv")
|
|
date = (input())
|
|
print(lecture("jeuTests.csv"))
|