我不确定为什么会收到消息错误
TypeError: __init__() 正好需要 3 个参数(给定 4 个)
对于下面描述的代码:
class Worker(object):
def __init__(arg1,arg2,arg3):
self.arg1 = arg1
self.arg2 = arg2
self.arg3 = arg3
def some_function(self):
print "it works: " + arg1 + arg2 + arg3
w=Worker("a","b","c")
w.some_function()
我会错过什么?