原文:错误总结:TypeError: not enough arguments for format string

总结:在学习python时,要注意下python版本 python . 以后,在print后要加括号 ...

2019-12-18 14:02 0 1032 推荐指数:

查看详情

Python TypeError: not enough arguments for format string

今天使用mysqldb执行query语句的时候,在执行这条语句的时候: 出现一下错误: 根据错误提示顺藤摸瓜找到病症: 在python扩展包mysqldb下的cursors.py有这么一处代码写法已经过时。 原来的的写法如图: 我们只需要 ...

Wed May 18 19:25:00 CST 2016 0 15770
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM