启动redis redis-cli -h 127.0.0.1 -p 6379 -a 12345 添加键值 set keytest '11111111' 读取键值 get keytest ...
分类:
其他好文 时间:
2021-04-21 12:05:28
阅读次数:
0
作用:userdel 命令用于删除当前系统存在的账户 1 用法:userdel [选项] 登录 2 3 选项: 4 -f, --force force some actions that would fail otherwise (-f 强制删除用户,即使用户当前是登录状态) 5 e.g. remo ...
分类:
其他好文 时间:
2021-04-20 15:45:21
阅读次数:
0
下午闲着无聊 用python写了个字典转MD5字典的脚本 import requestsimport hashlibdef baopo(script): print(u" 转化开始:") str=open(script).read() str_list=str.split('\n') print(s ...
分类:
编程语言 时间:
2021-04-20 15:25:35
阅读次数:
0
一、bit_xor 1、头文件 #include <functional> 2、模板 template <class T> struct bit_xor; template <class T = void> struct bit_xor; 3、返回两个参数按位XOR的结果(公共成员函数) 4、使用 ...
分类:
其他好文 时间:
2021-04-20 15:10:43
阅读次数:
0
参考链接: https://www.rapidtables.com/convert/color/rgb-to-hsv.html https://zhuanlan.zhihu.com/p/67930839 在缺陷检测时,直接使用RGB值检测一些有色差的缺陷时,往往不容易检测,因为RGB值的变化在肉眼上 ...
分类:
其他好文 时间:
2021-04-20 15:09:32
阅读次数:
0
Docker Hadoop 配置常见错误及解决办法 问题1:wordcount运行卡住,hadoop 任务运行到running job就卡住了 INFO mapreduce.Job: Running job: job_.... 解决如下: 1. 修改mapred-site.xml配置,配置文件在Ha ...
分类:
其他好文 时间:
2021-04-20 14:54:20
阅读次数:
0
题目来源 给定一串长度不超过 1 的字符串,本题要求你将其中所有英文字母的序号(字母 a-z 对应序号 1-26,不分大小写)相加,得到整数 N,然后再分析一下 N 的二进制表示中有多少 0、多少 1。例如给定字符串 PAT (Basic),其字母序号之和为:16+1+20+2+1+19+9+3=7 ...
分类:
编程语言 时间:
2021-04-19 16:06:23
阅读次数:
0
在配置Jenkins的源码管理的时候,遇上了这个错 Host key verification failed。 就是下图这里 图片是已经修正后的,报错的原因是说没有权限。 一开始一直以为是Jenkins配置问题,百度了好几个晚上都没有找到答案。 后来看到有人是在服务器上配置git的SSH,然后我意识 ...
分类:
其他好文 时间:
2021-04-19 15:57:00
阅读次数:
0
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:
其他好文 时间:
2021-04-19 15:50:56
阅读次数:
0
1、 > a <- c(1,2,2,2,3,1,1,3) > a [1] 1 2 2 2 3 1 1 3 > unique(a) [1] 1 2 3 > duplicated(a) [1] FALSE FALSE TRUE TRUE FALSE TRUE TRUE TRUE > !duplicate ...
分类:
编程语言 时间:
2021-04-19 15:48:44
阅读次数:
0