1、循环在body里,循环导入csv文件长度的次数,如csv共有5条数据,则循环5次。 val Feeder = csv("test.csv") .repeat(Feeder.readRecords.size) { feed(xSellFeeder) .exec(http("request_1") ...
分类:
其他好文 时间:
2020-07-20 10:16:06
阅读次数:
75
maven依赖: <!-- https://mvnrepository.com/artifact/com.belerweb/pinyin4j --> <dependency> <groupId>com.belerweb</groupId> <artifactId>pinyin4j</artifact ...
分类:
其他好文 时间:
2020-07-20 10:15:30
阅读次数:
77
单例:用于使用同一份实例(对象) 单例模式的实现: 1、方案一: class Foo: def __init__(self, name, age): self.name = name self.age = age def show(self): print(self.name, self.age) ...
分类:
编程语言 时间:
2020-07-19 23:52:16
阅读次数:
75
灵性建图,Pick定理证明内向树森林,DFS时线段树统计线段覆盖 ...
分类:
其他好文 时间:
2020-07-19 23:49:58
阅读次数:
97
3.1 Duplicated Code(重复代码) 3.2 Long Method(过长函数) 让小函数容易理解的真正关键在于一个好名字。 每当感觉需要以注释来说明点什么的时候,我们就把需要说明的东西写进一个独立函数中,并以其用途(而非实现手法)命名。 条件表达式和循环常常也是提炼的信号。 3.3 ...
分类:
其他好文 时间:
2020-07-19 23:48:56
阅读次数:
84
学习C++的shared_ptr智能指针你可能会碰到一个问题,循环引用为什么会出现问题?为什么不能释放?C++不是保证了对象构造成功退出作用域时就绝对会调用析构函数吗,调用析构函数不也会调用成员变量和父类的析构函数吗,为什么还不能释放呢?难道是编译器有bug? 非也,原因是一句绕口令式的答案:你以为 ...
分类:
其他好文 时间:
2020-07-19 23:46:32
阅读次数:
114
1. 使用while循环输出1 2 3 4 5 6 8 10count = 0while count < 10: count += 1 if count == 7 or count == 9: continue print(count)2.求1-100的所有数的和 num = 0count = 1w ...
分类:
其他好文 时间:
2020-07-19 23:45:36
阅读次数:
86
##题目 Pasha loves to send strictly positive integers to his friends. Pasha cares about security, therefore when he wants to send an integer n, he encry ...
分类:
其他好文 时间:
2020-07-19 23:37:51
阅读次数:
80
在用户权限下docker 命令需要 sudo 否则出现以下问题: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http:/ ...
分类:
其他好文 时间:
2020-07-19 23:34:49
阅读次数:
95
带头结点的双循环链表 L 为空表的条件是:L->next==L && L->prior==L 在单链表中设置头结点的作用是主要是使插入和删除等操作统一,在第一个元素之前插入元素和删除第一个结点不必另作判断。另外,不论链表是否为空,链表指针不变。在单链表 p 结点之后插入s 结点的操作是 s->nex ...
分类:
其他好文 时间:
2020-07-19 23:13:51
阅读次数:
56