print_log.py 155 B

12345678
  1. LOGFILE = ""
  2. def printlog(content):
  3. print(content)
  4. with open(LOGFILE, 'a+', encoding='utf-8') as f:
  5. f.write(content + '\n')
  6. pass