初学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'
求大神指点! 展开
启帆信息
2024-11-19 广告
2024-11-19 广告
启帆信息是英伟达中国区代理商,原厂授权代理,提供全面的软件技术解决方案以及NVIDIA以太网产品、交换机等产品,欢迎前来咨询!...
点击进入详情页
本回答由启帆信息提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询