用python的mysqldb包 执行insert语句cur.execute(sql)之后还需要 con.commit() 否则id增长了却没有数据 转载于:https://www.cnblogs.com/deityjiangyu/p/7479781.html