阅读背景:

从装饰器获取Python函数的拥有类

来源:互联网 

I have a decorator in PY. It is a method and takes the function as a parameter. I want to create a directory structure based based on the passed function. I am using the module name for the parent directory but would like to use the classname for a subdirectory. I can't figure out how to get the name of the class that owns the fn object.I have a decorator in PY. It is a method and ta




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

分享到: