sql_insert = '''insert into sinfors_hvvms values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)''' conn= MySQLdb.connect( host='10.160.25.31', port = 3306, user='mgmtuser', passwd='N53(R3#2.a2)mg', db ='mgmt', charset='utf8' #插入数据时解决中文乱码问题 ) cu = con…