【python+unittest 接口自动化测试实战(二)】公共模块:pymysql 连接mysql数据库
#coding=utf-8importpymysqlclassMysqlUntil:def__init__(self,host,user,passwd,db,port,charset):self.host=hostself.user=userself.passwd=passwdself.db=dbself.port=int(port)self.charset=charsetdefconn_mysq