用户编辑
wrap的Python项目详细描述
有用的包装收藏
注意:此包仍在alpha中。小心使用!
快速启动
安装包装:
pip install wrap
使用日志抄送:
@show(level='DEBUG')@safe(Exception)deftest(text):print(text)raiseException('test')if__name__=='__main__':logging.basicConfig(level=logging.INFO)log=logging.getLogger()ret=test('hello world')print(ret,type(ret))