为A类中的t属性定义一个获取属性值的方法(即getter),则应使用()装饰器。

为A类中的t属性定义一个获取属性值的方法(即getter),则应使用()装饰器。

A.@property

B.@t.getter

C.@property.getter

D.t.property.getter

正确答案:@property

猜你喜欢