1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| import re
|
| class WetterStation:
| """
| represents a Weather station
| """
| def __init__(self, station_line: str):
| fields = re.split(r"\s+", station_line.strip())
| self._id = fields[0]
| self._bundesland = fields[-1]
| self._name = fields[-2]
|
| def id(self):
| return self._id
|
| def name(self):
| return self._name
|
| def bundesland(self):
| return self._bundesland
|
| pass
|
|