pymysql用insert向数据库插入

祥瑞哈哈哈 / 2023-06-02 / 原文

                c = cursor.execute("INSERT INTO `studentmemo`.`teacher`(`账号`,`密码`) VALUES('"+str(account)+"','"+str(password)+"');")
                conn.commit()#使上一条语句生效,我怀疑是执行代码上一行是存储