添加了api接口需要key的规则

This commit is contained in:
MarkusJoe
2022-04-10 14:31:24 +08:00
parent b59bf10970
commit bf9b3fac1f
9 files changed
+151 -40

No files matched your search

+21
View File
@@ -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')