摘要: 代码: 执行后报错: ProgrammingError: must be real number, not str 解决: 在sql语句中把 所有的站位符 换成 %s,不用能其他的站位符。 阅读全文
posted @ 2018-03-31 16:38 newAdmin 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 在python2.7中,我们安装的是 MySqldb或这 MySQL-python,能够正却安装,但在python3中,由于 其使用的扩展 ConfigParser 已经改名为 configparser,所以在python3 不能正常按转了。。 在 stackoverflow 中的解释: In Py 阅读全文
posted @ 2018-03-31 11:10 newAdmin 阅读(242) 评论(0) 推荐(0) 编辑