2019年10月16日

Python 装饰器

摘要: 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 4 5 def out_func(fun): 6 def test(args): 7 print("验证") 8 return fun(args) 9 return test 10 11 12 @out_func 13 def func1(args): 14 print("this is fu 阅读全文

posted @ 2019-10-16 18:13 voua 阅读(88) 评论(0) 推荐(0) 编辑

导航