add day 1
This commit is contained in:
12
lib/tools.py
Normal file
12
lib/tools.py
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
class Reader(object):
|
||||
def __init__(self, filename):
|
||||
self.filename = filename
|
||||
|
||||
def read(self):
|
||||
lines = []
|
||||
with open(self.filename, 'r') as f:
|
||||
for line in f.readlines():
|
||||
lines.append(line.strip())
|
||||
return lines
|
||||
|
Reference in New Issue
Block a user