build the basic frame

This commit is contained in:
Jalin
2019-01-06 10:01:26 +08:00
parent b32da477cb
commit e6e19056f9
18 changed files with 749 additions and 0 deletions

18
py12306/log/base.py Normal file
View File

@@ -0,0 +1,18 @@
from py12306.helpers.func import *
class BaseLog:
logs = []
@classmethod
def add_log(cls, content):
self = cls()
self.logs.append(content)
return self
@classmethod
def flush(cls):
self = cls()
for i in self.logs:
print(i)
# print(self.logs)