搜题
问题   更新时间2023/4/3 12:59:00

[程序题,5分] 阅读下面的程序,判断其是否可以正常运行,如果可以运行则写出执行结果,如果不能 运行则写出理由。 classTest: def__init__(self,value): self.__value=value @property defvalue(self): returnself.__value t=Test(3) t.value=5 print(t.value)

不能运行|程序中定义的是只读属性|不能修改属性的值
王老师:19139051760(拨打)