read in file
This commit is contained in:
parent
0a7db7ae79
commit
5bca0b987a
|
|
@ -0,0 +1,22 @@
|
|||
# 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]))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue