Archived
添加了api接口需要key的规则
This commit is contained in:
9 files changed
+151
-40
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
# -- coding:utf-8 --
|
||||
# @Author: markushammered@gmail.com
|
||||
# @Development Tool: PyCharm
|
||||
# @Create Time: 2022/4/10
|
||||
# @File Name: test_decorator.py
|
||||
|
||||
|
||||
def check(func):
|
||||
def wrapper(*args, **kwargs):
|
||||
print(kwargs)
|
||||
return func(*args, **kwargs)
|
||||
return wrapper
|
||||
|
||||
|
||||
@check()
|
||||
def test(name: str):
|
||||
print(name)
|
||||
|
||||
|
||||
test('Markus')
|
||||
Reference in New Issue
Block a user