not all arguments converted during string formatting Python+mysql 写入数据库的的错误
>>>cur.execute("INSERTINTOfooVALUES(%s)","bar")#WRONG>>>cur.execute("INSERTINTOfooVALUES(%s)",("bar"))#WRONG>>>cur.execute("INSERTINTOfooVALUES(%s)",("bar",))#correct>>>cur.execute("INSERTINTOfooVALUE