新增数据后获取插入数据的id import pymsql conn = pymysql.connect(host='localhost', user='test', password="123456", database='test1', port=3306, charset='utf8'