Python3使用mysql建立新數據庫並進行增刪改查操做

import pymysql #在數據庫中插入數據 def insertData(db, cursor): # 插入數據 sql = """INSERT INTO student (id, name, age)VALUES (1, '小明', 18), (2, '小蘭', 18);""" try:
相關文章
相關標籤/搜索