喵吉欧尼酱

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年9月6日

摘要: 装饰器再函数执行前后做修饰 装饰器简单调用 def outer(func): return 'LH' @outer def index(): return True >>> print(index) #index变成了一个字符串 装饰器返回函数名 1 def outer(func): 2 3 def 阅读全文
posted @ 2017-09-06 22:32 喵吉欧尼酱 阅读(201) 评论(0) 推荐(0)