接口开发: import flask,json,pymysql,hashlib server = flask.Flask(__name__)# 把当前这个python文件当做一个服务 def my_db(sql,port=3306,charset='utf8'): ip,user,passwd,db = ','jxz' coon = pymysql.connect(host=ip,user=user, password=passwd,db=db, port=port,charset=charse