摘要:
from locust import HttpLocust, TaskSet, taskimport pymysqlimport randomclass UserBehavior(TaskSet): def on_start(self): db = pymysql.connect("ip地址", " 阅读全文
摘要:
db=pymysql.connect("ip地址","用户名","密码","数据库")cursor=db.cursor()cursor.execute("select * from zj_class limit 5")data=cursor.fetchall()for i in range(5): 阅读全文