首页 / 百科 / 内容详情 已知Student类有一个属性__id,stu是Student类的对象,则通过“stu.__id='1810101'”可以将stu对象中的__id属性赋值为字符串'1810101'。 2022-04-25 4次阅读 student 已知 stu 已知Student类有一个属性__id,stu是Student类的对象,则通过“stu.__id='1810101'”可以将stu对象中的__id属性赋值为字符串'1810101'。 A.正确B.错误正确答案:错误 构造方法可以没有形参。 已知一个类属性的名字是__id,则该属性是()。 猜你喜欢 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&