已知stu是Student类对象 则执行“print(stu)”时会自动执行Student类的()方法。
已帮助 人
已知stu是Student类对象,则执行“print(stu)”时会自动执行Student类的()方法。
A.__init__
B.__str__
C.__format__
D.__print__

回答
共1条回复-
__str__
