参考:https://www.cnblogs.com/dream66/p/13233797.html 一、Faker模块是什么? 一个Python第三方模块,主要用来创建伪数据 无需再手动生成或者手写随机数来生成数据,是否faker提供的方法,即可完成数据的生成 二、使用背景介绍 在软件测试过程中, ...
分类:
编程语言 时间:
2020-07-04 13:34:02
阅读次数:
69
有点烧脑的签到题,第一次不知道的可能要找半天。。我是几天看下来都没发现,后来回过头又看了几遍才有发现。。网页如下: 可以看到flag是不完整的,这个不能用,找了半天在页面里都没发现线索,用burp也没发现啥可疑: 后来尝试对该密文MD5解密看看(注意MD5是哈希算法,这里简说加解密了),出来一个字符 ...
分类:
其他好文 时间:
2020-07-03 19:35:21
阅读次数:
243
今天把集群关闭后会造成shards移动到其他正常节点,但是重新启动shares并不会移动到恢复的节点。 在网上找了一会儿资料发现一个方法: 把副本数调整为0,会自动平衡shares,再增加number_of_replicas,会自动再建立副本数。(怀疑是重启过程出现副本数损坏了),此时shared又 ...
分类:
其他好文 时间:
2020-07-03 15:54:28
阅读次数:
108
# 设置时区 # cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime #时区为亚洲/上海 # 网络校时 # apt-get install ntpdate # ntpdate 210.72.145.44 # 中国国家时间服务器: 210.72.14 ...
分类:
其他好文 时间:
2020-07-02 20:07:13
阅读次数:
353
1、 LinkedList的使用 https://www.cnblogs.com/ChengWenHao/p/CSharpLinkedList.html private static void TestLinkList() { LinkedList<Person> linkListPerson = ...
分类:
其他好文 时间:
2020-07-02 13:25:44
阅读次数:
43
from docx import Document w=Document(r'F:\word练习\ss.docx') paragraph=w.paragraphs[1] print('删除前图片的数量:',len(w.inline_shapes)) paragraph.clear() print(' ...
分类:
其他好文 时间:
2020-07-02 13:21:56
阅读次数:
35
过滤ip ip.src eq(=) x.x.x.x or ip.dist eq(=) x.x.x.x //组合过滤也可以设置or,and进行组合过滤 ip.addr eq(=) x.x.x.x //单个ip过滤 过滤端口 tcp.port eq 80 or udp.port eq 80 tcp.ds ...
分类:
其他好文 时间:
2020-07-02 09:26:58
阅读次数:
57
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:
其他好文 时间:
2020-07-01 23:59:14
阅读次数:
86
Django之模板 目录 常用语法 变量 Filters 自定义filter Tags csrf_token 注释 注意事项 母板 继承母板 块(block) 组件 静态文件相关 使用get_static_prefix 自定义simpletag inclusion_tag Django模板系统 官方 ...
分类:
其他好文 时间:
2020-07-01 22:25:42
阅读次数:
57
C# Net 交换两个变量的值 C# Net 使用元祖交换两个变量的值 C# Net 交换 两个变量值 原来的办法(中间变量): int a = 1; int b = 1; int c; c=b; b=a; a=c; 在C# 7.0 中存在泛型 Tuple(元祖) 类 int a = 1; int ...