输入banner图图片脚本导航/分类

Python中MySQL插入数据

sql = INSERT INTO course(class_name, credit, properties, teacher_name, college_given, classroom) 2 VALUES ("%s", "%d", "%s", "%s", "%s", "%s") % 3 (class_name, credit, properties, teacher_name, college_given, classroom) 4 cursor.execute(sql) 5 conn.commit()

 

Python中MySQL插入数据

标签:values   pytho   数据   nbsp   cursor   exec   class   mysq   comm