22 lines
556 B
Python
22 lines
556 B
Python
# Class for the datas
|
|
class meres():
|
|
def __init__(self, telepules, ido, szel, homerseklet):
|
|
self.telepules = telepules
|
|
self.ido = ido
|
|
self.szel = szel
|
|
self.homerseklet = homerseklet
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
#Read in the data
|
|
meresek = []
|
|
file = open("tavirathu13.txt")
|
|
|
|
for line in file:
|
|
meresek.append(meres(line.split()[0],
|
|
line.split()[1],
|
|
line.split()[2],
|
|
line.split()[3]))
|
|
|
|
|