python錯誤:TypeError: 'str' object is not callable

oh,shit

cursor.execute("delete from mysql_status where db_id=%s and variable_id=%s and time<%s"(db_id,variable_id,stale_time))

忘記加%了,不過這個錯誤也提示真是莫名其妙

發佈了161 篇原創文章 · 獲贊 14 · 訪問量 68萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章