########
import time
def logger(n):
time_format = '%Y-%m-%d %X'
time_current = time.strftime(time_format)
with open('log.txt','a') as f:
f.write('and action%s\n'%n)
转载于:https://www.cnblogs.com/oldboyabu/p/8508544.html
########
import time
def logger(n):
time_format = '%Y-%m-%d %X'
time_current = time.strftime(time_format)
with open('log.txt','a') as f:
f.write('and action%s\n'%n)
转载于:https://www.cnblogs.com/oldboyabu/p/8508544.html