二分查找的基本框架 int binarySearch(int[] nums, int target) { int left = 0, right = ...; while(...) { int mid = left + (right - left) / 2; if (nums[mid] == tar ...
分类:
其他好文 时间:
2021-04-22 15:54:34
阅读次数:
0
Java执行groovy脚本的两种方式 记录Java执行groovy脚本的两种方式,简单粗暴: 一种是通过脚本引擎ScriptEngine提供的eval(String)方法执行脚本内容;一种是执行groovy脚本; 二者都通过Invocable来传递参数并获取执行结果; Invocable:脚本引擎 ...
分类:
编程语言 时间:
2021-04-22 15:31:17
阅读次数:
0
python 虚拟环境 创建一个虚拟环境 python3 -m venv /path/to/new/virtual/environment 使用虚拟环境 source ./venv_name/bin/activate ...
分类:
编程语言 时间:
2021-04-22 15:27:26
阅读次数:
0
#!/usr/bin/env python # -*- coding:utf-8 _*- """ @author:zhoutao @file: 金山 V8 终端安全系统 默认弱口令漏洞.py @time: 2021/04/20 @function: """ import requests impor ...
分类:
其他好文 时间:
2021-04-22 15:22:34
阅读次数:
0
一、问题报错 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint xxxx and the end yyyy. 因MySQL上存储的应用数据并没有多大,mysql下多张 ...
分类:
数据库 时间:
2021-04-22 15:22:00
阅读次数:
0
一.安装 1.下载官网:https://tomcat.apache.org/ 2.将下载后的包解压到目录中会出现以下页面 3.设置环境变量,向path中添加tomcat的bin目录地址 4.cmd进入tomcat的bin目录,输入:service.bat install 4.启动与关闭: ? 启动: ...
分类:
其他好文 时间:
2021-04-22 15:15:50
阅读次数:
0
API的设计和使用方式 如何开发一个容器平台 在项目deep-in-kubernetes查看有 grep -r "apiVersion" 写法。 api核心组 有两级 版本 资源 apis非核心 三级表示 分组 版本 资源 ...
在/root/init.rc中添加下面内容, 开机就会执行/system/bin/boot-complete-script.sh脚本 service boot_complete_script /system/bin/boot-complete-script.sh class main oneshot ...
分类:
移动开发 时间:
2021-04-21 12:38:11
阅读次数:
0
make 时出现: /usr/bin/ld: 找不到 -lboost_serialization 0x00 存在库但是没有链接指向库导致找不到 使用 locate 定位库文件 locate libxxx.so 定位结果: /usr/local/ahuasdk/libXXX.so 利用软链接将两者链接 ...
分类:
其他好文 时间:
2021-04-21 12:34:38
阅读次数:
0
http://mail.qq.com/cgi-bin/ftnExs_download?k=0d33656100442bca7470667411370a175051575505510b0f48510757021a0c5d5457480303075d150355075504565d00045707593 ...
分类:
其他好文 时间:
2021-04-21 12:28:03
阅读次数:
0