会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mars.wang
博客园
首页
新随笔
管理
2020年3月3日
python装饰器在类中的实现
摘要: class Test(): xx = False def __init__(self): pass def test(func): def wrapper(self, *args, **kwargs): print(self.xx) return func(self, *args, **kwargs
阅读全文
posted @ 2020-03-03 13:50 Mars.wang
阅读(1313)
评论(0)
推荐(1)