我想在调用一些函数之前定义一些通用装饰器来检查参数.
就像是:
@checkArguments(types = ['int', 'float']) def myFunction(thisVarIsAnInt, thisVarIsAFloat) ''' Here my code ''' pass
附注:
python python-decorators
python ×1
python-decorators ×1