123456789101112131415161718192021 |
- import time
- TIMESTAMP = str(int(time.time()))
- LOGFILE = ""
- def printlog(content):
- print(content)
- with open(LOGFILE, 'a+', encoding='utf-8') as f:
- f.write(content + '\n')
- pass
- if __name__ == "__main__":
- DEBUG = False
- printlog("test")
- printlog("test1")
|