摘要:
一、思路: 1.将集合元素提取出来形成一个List列表; 2.使用Map记录List列表中元素的位置,比如Map<元素,位置>; 3.根据Map集合的大小,定义一个令牌桶,桶里面的令牌即是编号(也就是位置); 4.随机从令牌桶中获取一个令牌; 5.循环遍历Map集合,如果Map集合里面的元素的位置和 阅读全文
posted @ 2025-11-09 21:05
YouThIU
阅读(4)
评论(0)
推荐(0)
摘要:
1、pytest官方文档介绍,附图 def pytest_terminal_summary(terminalreporter, exitstatus, config): """Add a section to terminal summary reporting. :param _pytest.te 阅读全文
posted @ 2025-11-09 12:33
YouThIU
阅读(5)
评论(0)
推荐(0)
摘要:
原因:由于mysql默认只能在本机进行操作,可以更改mysql数据库的user表的host字段即可 mysql> update user set host = '%' where user = 'root'; Query OK, 1 row affected (0.07 sec) Rows matc 阅读全文
posted @ 2025-11-09 12:25
YouThIU
阅读(28)
评论(0)
推荐(0)
浙公网安备 33010602011771号