0
我有一个类,让所谓的WindCMD
,它与装饰功能如何获得函数的装饰器?
@options(
[
make_option('-s', '--windspeed',
default = 999,
help = "Set the wind speed."
),
make_option('-d', '--winddir',
default = 999,
help = "Set the wind direction."
)
]
)
def do_set_wind_manually(self, line, opts = None):
有一种可能性,通过使用__dict__
获得类的所有功能,但我怎么能得到的功能装饰和选择?