摘要: 1 import logging 2 3 def use_logging(func): 4 def writelog(*args, **kwargs): 5 logging.warning("%s is running xxx" % func.__name__) 6 return func(*args) 7 8 return writelog 9 10 def far(): 11 print("f 阅读全文
posted @ 2019-10-15 14:00 Mr.zou 阅读(272) 评论(0) 推荐(0) 编辑