摘要: _name_:查看字符串形式的函数名; _doc_:查看函数解释文档 完美装饰器:可以使用__name__及__doc__等方法。 from functools import wraps def wraps1(func) @wraps def inner1() 'before func' ret=f 阅读全文
posted @ 2019-01-15 19:56 【小桥流水人家】 阅读(95) 评论(0) 推荐(0) 编辑