初学Python时遇到问题! object has no attribute
Traceback(mostrecentcalllast):File"C:\Users\gufuzhiqing\Desktop\Tanqiu.py",line70,in<...
Traceback (most recent call last):
File "C:\Users\gufuzhiqing\Desktop\Tanqiu.py", line 70, in <module>
paddle=Paddle(canvas,'blue')
File "C:\Users\gufuzhiqing\Desktop\Tanqiu.py", line 45, in __init__
self.canvas.bind_all('<KeyPress-Left>',self.turn_left)
AttributeError: 'Paddle' object has no attribute 'turn_left'
求大神指点! 展开
File "C:\Users\gufuzhiqing\Desktop\Tanqiu.py", line 70, in <module>
paddle=Paddle(canvas,'blue')
File "C:\Users\gufuzhiqing\Desktop\Tanqiu.py", line 45, in __init__
self.canvas.bind_all('<KeyPress-Left>',self.turn_left)
AttributeError: 'Paddle' object has no attribute 'turn_left'
求大神指点! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询