mysql

mysql-python:not all arguments converted during string formatting

Roy
今天把django从1.5.5升级到了1.6.2,结果使用mysql-python查询数据库时候就报了这个错误:“not all arguments converted during string formatting” 貌似这个问题应该和django没什么关系,正好今天就看看mysql-python的源码吧。想看如何解决的请直接跳到最后。 查询部分简化后如下: posistion = "top" order = r"select id,p_name,p_explain,p_href from pictures where p_position = %s and p_show = 1 order by -id" self.