写python的时候报错:
Exception in thread :
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line , in __bootstrap_inner
self.run()
File "thread.py", line , in run
RunYun( a, b, c, d, e, f )
File "thread.py", line , in RunYun
DbProxy.instance.insert(a, b)
TypeError: insert() takes exactly arguments ( given)
明明定义的就是2个参数,为什么老是报错说少参数?
这个错误出现几次了,脑回路还是要卡一下。因为类里面的函数第一个参数要写self,剩下的才算。<-_<-