classs Admin < activeRecord::Base delegate :firstname, :to => :user # 等价于 # firstname => user.firstname # delegate :firstname, :to => :user, :prefix = ...
分类:
其他好文 时间:
2020-06-26 18:04:07
阅读次数:
47
1.swipe从坐标点滑动到坐标点 5个参数(起始横坐标,起始纵坐标,结束横坐标,结束纵坐标,滑动时长单位毫秒) driver.swipe(start_x,start_y,end_x,end_y,duration=None) 注意: 每次操作的期望时间与真实时间有误差,造成了每次的滑动距离不等。 滑 ...
分类:
移动开发 时间:
2020-06-26 16:38:00
阅读次数:
95
Test_Request_Module.py import requests class Test_Request: def __init__(self,ip): self.ip = ip def ip_address(self): url = "http://apis.juhe.cn/ip/ipN ...
分类:
其他好文 时间:
2020-06-26 16:28:42
阅读次数:
62
裸题:https://ac.nowcoder.com/acm/contest/5929/B #include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; int n; st ...
分类:
其他好文 时间:
2020-06-26 16:23:42
阅读次数:
104
$\text$我来啦我来啦 \(\text{Solution:}\) 题目要求求好几个串串的$\text$ 由于串串的数量并不多,所以我们把它们塞到一个$\text$里面,中间加上分隔符号。 那么答案就是最深的且它的子树中具有所有分节符的非叶子节点。 至于分节符数量和种类,用前缀和即可。 介于$\t ...
分类:
其他好文 时间:
2020-06-26 14:56:32
阅读次数:
46
1、Elasticsearch 的选主是 ZenDiscovery 模块负责的,主要包含 Ping(节点之 间通过这个 RPC 来发现彼此)和 Unicast(单播模块包含一个主机列表以控制哪 些节点需要 ping 通)这两部分; 2、对所有可以成为 master 的节点(node.master: ...
分类:
其他好文 时间:
2020-06-26 14:45:50
阅读次数:
57
# -*- coding: utf-8 -*- import csv data1 = [['name', 'age', 'sex'], ['张三', '19', '男'], ['李四', '22', '男'], ['王五', '20', '男'], ['赵六', '18', '女']] # writ ...
分类:
编程语言 时间:
2020-06-26 14:24:39
阅读次数:
56
Spring Security支持在继承WebSecurityConfigurerAdapter的配置类中配置注销登录: HttpSecurity内的logout()方法以一个LogoutConfigurer作为配置基础,创建一个用于注销登录的过滤器: HttpSecurity: public Lo ...
分类:
编程语言 时间:
2020-06-26 12:44:23
阅读次数:
98
被监控端 1: 在微服务上pom.xml 引入依赖 <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-metrics-event-stream</artifactId> <version>1.5.18</v ...
分类:
编程语言 时间:
2020-06-26 12:40:07
阅读次数:
76
如果你想从头学习Jmeter,可以看看这个系列的文章哦 https://www.cnblogs.com/poloyy/category/1746599.html 简单介绍 计数器的作用:循环递增生成数字 计数器使用 long 来存储值,因此取值范围是 -2 ^ 63 到 2 ^ 63-1 可以在线程 ...
分类:
其他好文 时间:
2020-06-26 01:24:32
阅读次数:
82