forked from tdwojak/Python2018
zad5 z lab4
This commit is contained in:
parent
fb7990d5d1
commit
6f96fd087a
20
labs04/zad5.py
Normal file
20
labs04/zad5.py
Normal file
@ -0,0 +1,20 @@
|
||||
import glob
|
||||
|
||||
pliki = glob.glob('scores/*')
|
||||
|
||||
wyniki = []
|
||||
|
||||
for plik in pliki:
|
||||
f = open(plik, 'r')
|
||||
linia = f.readline()
|
||||
linia = linia.split(" ")
|
||||
|
||||
|
||||
linia = [x.strip(",") for x in linia]
|
||||
wyniki.append(linia[2])
|
||||
|
||||
f.close()
|
||||
max_index = wyniki.index(max(wyniki))
|
||||
|
||||
max_value = wyniki[max_index]
|
||||
plik_z_maxBLEU = pliki[max_index]
|
Loading…
Reference in New Issue
Block a user