首页 / 百科 / 内容详情 已知Student类是一个空类,则通过“Student.name='unknown'”语句增加的属性可以通过()访问。 2022-04-25 4次阅读 student 已知 通过 已知Student类是一个空类,则通过“Student.name='unknown'”语句增加的属性可以通过()访问。 A.类名或对象名B.仅类名C.仅对象名D.无法访问正确答案:类名或对象名 为一个对象动态绑定的新属性,只能通过该对象访问。 类的封装性是指将一个数据相关的属性封装在一起。 猜你喜欢 Jack has been used to not sleeping until o’clock since he was a middle school student. student=dict(姓名='张三',年龄=20,性别='男'),则student的数据类型是? student=dict(姓名='张三',年龄=20,性别='男'),则student['姓名']的结果是? student=dict(姓名='张三',年龄=20,性别='男'),则"张三"instudent的结果是? student=dict(姓名='张三',年龄=20,性别='男'),则student.get("name","NotFound&