原文:錯誤總結: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