1
0
forked from tdwojak/Python2018
Python2018/labs04/Zadanie 5

21 lines
362 B
Plaintext
Raw Normal View History

2018-06-02 12:12:33 +02:00
import glob
sciezka = 'scores/*.npz.bleu'
for plik in glob.glob(sciezka):
with open(plik, 'r') as f:
for linia in f.readlines():
numer = float(linia[linia.find("=") + 1:linia.find(",")])
if numer > 0:
max_numer = numer
max_numer_plik = plik
f.close()
print(max_numer_plik)