下列Python代码中,self参数的作用表示MyClass类的一个实例。( )
class MyClass():
def my_method(self, other_arg):
print(self, other_arg)
obj = MyClass()
obj.my_method("Hello")
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析