已知stu是Student类对象,则执行“print(stu)”时会自动执行Student类的()方法。
A.__init__
B.__str__
C.__format__
D.__print__
正确答案:__str__
猜你喜欢