简单的装饰器import logging
def use_logging(func):
def wrapper():
logging.warning("%s is running" % func.__name_
2019-07-31