阅读背景:

如何在python中将特定参数传递给装饰器

来源:互联网 

I want to write a python function decorator that tests that certain arguments to a function pass some criterion. For eg, Suppose I want to test that some arguments are always even, then I want to be able to do something like this (not valid python code) I want to write a python function decorator tha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: