摘要:
1 # coding:utf-8 2 3 4 class log(object): 5 6 def __init__(self, **kwargs): 7 ''' 8 ,:日志输出格式 9 #外层日志格式[时间,日志名,日志级别,日志信息] 10 #内层日志格式[函数名称,函数参数... 阅读全文
摘要:
"""This provides a lineno() function to make it easy to grab the line number that we're on. """ import inspect def lineno(): """Returns the current line number in our program.""" return in... 阅读全文