-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTILDAlab1klass.py
More file actions
36 lines (29 loc) · 886 Bytes
/
TILDAlab1klass.py
File metadata and controls
36 lines (29 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Place():
def __init__(self, name, description, latitude, longitude, update):
self.name = name
self.description = description
self.latitude = latitude
self.longitude = longitude
self.update = update
def __str__(self):
return str(self.name)
"""class ListFilter():
def __init__(self, inputlist):
self.inputlist = self.sortChunks(inputlist)
def sortChunks(inputlist):
with open(inputlist, 'r') as file:
theFile = file.read()
theFile = theFile.split('\n\n')
objects = []
for x in theFile:
c = x.split('\n')
objects.append(c)
return objects[0]"""
c = Place("Hej",1,2,3,4)
d = Place("Hej2",1,2,3,4)
e = Place("Hej3",1,2,3,4)
lista = [c,d,e]
print(lista[0])
print(d)
print(e)
a = 'geodataSW.txt'