forked from tdwojak/Python2018
zadanie
This commit is contained in:
parent
c1a510a707
commit
10ddbf40ed
16
labs04/zadanie5.py
Normal file
16
labs04/zadanie5.py
Normal file
@ -0,0 +1,16 @@
|
||||
import glob
|
||||
|
||||
pliki = glob.glob('scores/*')
|
||||
wyniki = []
|
||||
|
||||
for plik in pliki:
|
||||
f = open(plik, 'r')
|
||||
tekst = f.readline()
|
||||
tekst = tekst.split(" ")
|
||||
tekst = [x.strip(",") for x in tekst]
|
||||
wyniki.append(tekst[2])
|
||||
|
||||
f.close()
|
||||
index = wyniki.index(max(wyniki))
|
||||
sciezka = pliki[index]
|
||||
print(sciezka)
|
Loading…
Reference in New Issue
Block a user