• 2022-06-11 问题

    class Student:def __init__(self,name):self.name=namedef (1)(self):print(self.name)if __name__=='__main__':stu1=Student('Li Xiaoming')stu2=Student('Ma Hong')stu3=(2)del stu2del stu1完成(1)和(2)代码填写,使之输出如下结果:Li XiaomingMa Hong

    class Student:def __init__(self,name):self.name=namedef (1)(self):print(self.name)if __name__=='__main__':stu1=Student('Li Xiaoming')stu2=Student('Ma Hong')stu3=(2)del stu2del stu1完成(1)和(2)代码填写,使之输出如下结果:Li XiaomingMa Hong

  • 1