python3 中有时候会用到简单的log记录,在此log一下
def LOG(text):
localtime = time.asctime(time.localtime(time.time()))
with open('debugLog.txt', 'a+') as f:
f.write(localtime + '\t'+text+'\n')
python3 中有时候会用到简单的log记录,在此log一下
def LOG(text):
localtime = time.asctime(time.localtime(time.time()))
with open('debugLog.txt', 'a+') as f:
f.write(localtime + '\t'+text+'\n')