参考链接:https://pypi.python.org/pypi/PyMySQL#downloads import pymysql.cursors,xml.dom.minidom # Connect to the database connection = pymysql.connect(host='192.168.75.134', user='sdo', password='51..sdo', db='sdo_config', charset='utf8mb4', cursorclass=p…