摘要: 装饰器 假设用funcA函数装饰器去装饰funcB函数 # 装饰器函数 def funcA(fc): print('this is funcA') # 执行传入的fc参数 fc() return fc @funcA def funcB(): print('this is funcB') funcB( 阅读全文
posted @ 2022-04-07 14:50 ArdenWang 阅读(25) 评论(0) 推荐(0) 编辑