会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
蓝月
谦虚使人进步,骄傲使人落后
博客园
首页
新随笔
联系
订阅
管理
2018年8月28日
Python 类装饰器
摘要: 1.import time, datetimeclass Ly: def __init__(self, fun): self.fun = fun print('this is t...
阅读全文
posted @ 2018-08-28 15:42 IT蓝月
阅读(165)
评论(0)
推荐(0)
编辑
Python 装饰器
摘要: 1.把一个函数作为另一个函数的参数注意函数 ly 中传的是另一个函数的地址,而不是对象import datetime, timedef ly(fun): print(datetime.datetime.no...
阅读全文
posted @ 2018-08-28 11:30 IT蓝月
阅读(123)
评论(0)
推荐(0)
编辑
公告
Live2D