def trace():
if not trace.__dict__.has_key("started"):
time = datetime.now().strftime('%Y-%m-%d %H:%M:%S' )
fh.write("\n[%s] %s" % (time, str))
trace.started = True
转载于:https://blog.51cto.com/4249964/1585866
def trace():
if not trace.__dict__.has_key("started"):
time = datetime.now().strftime('%Y-%m-%d %H:%M:%S' )
fh.write("\n[%s] %s" % (time, str))
trace.started = True
转载于:https://blog.51cto.com/4249964/1585866

被折叠的 条评论
为什么被折叠?