题库 Python题库 题目列表 下列Python代码中,self参数的作用表示MyClass类的一...
判断题

下列Python代码中,self参数的作用表示MyClass类的一个实例。 ( )

class MyClass(): 
     def my_method(self, other_arg): 
             print(self, other_arg) 
 obj = MyClass() 
 obj.my_method("Hello")
A.
正确
B.
错误
题目信息
2024年 6月 判断题
-
正确率
0
评论
0
点击