AttributeError: ‘NoneType ’ object has no attribute 'execute' d format: a number is required, not st
Python在操作Mysql数据的时候,报了两个错误,一个是AttributeError: 'DBHelper' object has no attribute 'cursor';另一个是%d format: a number is required, not str 错误分析过程,第一个是提示cursor是空的,那可能是数据库链接那里有问题,链接没成功,所以cu...