311.csv #1

Open
s354567 wants to merge 17 commits from s354567/Python2018:master into master
Showing only changes of commit 6f96fd087a - Show all commits

20
labs04/zad5.py Normal file
View 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]