1. 引言 什么是Json Schema? 以一个例子来说明 假设有一个web api,接受一个json请求,返回某个用户在某个城市关系最近的若干个好友。一个请求的例子如下: { "city" : "chicago", "number": 20, "user" : { "name":"Alex", ...
分类:
Web程序 时间:
2020-06-24 12:10:05
阅读次数:
53
什么是算法? 算法是用于解决特定问题的一系列的执行步骤; 使用不同的算法,解决同一个问题,效率可能相差很大; 比如:求第 n 个斐波那契数 (fibonacci number) // 方法1 public static int fib1(int n) { if (n <= 1) { return 1 ...
分类:
其他好文 时间:
2020-06-24 10:36:14
阅读次数:
50
fun hammingWeight(n: Int): Int { /** * 以下是完整的位运算符(只用语Int和Long) shl(bits) – 有符号左移(signed shift left,相当于Java的<<) shr(bits) – 有符号右移(signed shift right,相当 ...
分类:
其他好文 时间:
2020-06-24 00:47:49
阅读次数:
65
基本模块 yml内容 %YAML:1.0 ImagePath:"data/image/image0" CornerPath:"data/corners.txt" MapPath:"data/xml/" static int parseCmdArgs(int argc, char** argv) // ...
分类:
其他好文 时间:
2020-06-24 00:38:36
阅读次数:
59
1.在application目录下创建crontab模块(统一存放定时任务) 2.在command目录下创建Task.php 代码如下: <?php namespace app\crontab\command; use think\console\Command; use think\console ...
分类:
Web程序 时间:
2020-06-24 00:26:08
阅读次数:
315
; opcache的开关,关闭时代码不再优化. opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP opcache.enable_cli=1 ; OPcache的共享内存大小,以兆字节 ...
分类:
其他好文 时间:
2020-06-24 00:13:42
阅读次数:
68
package LeetCode_268 /** * 268. Missing Number * https://leetcode.com/problems/missing-number/description/ * * Given an array containing n distinct nu ...
分类:
其他好文 时间:
2020-06-24 00:06:34
阅读次数:
63
均为 root 账户操作 检查系统中的jdk版本 java -version 没有的话直接下一步 有就卸载 查询自带的openjdk rpm -qa | grep -i java 没有的话直接跳过下一步 有就卸载 检查系统环境 uname -a //i686表示32位 x86_64表示是64位 下载 ...
分类:
其他好文 时间:
2020-06-23 22:56:17
阅读次数:
236
The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided to prepare a goodbye ...
分类:
其他好文 时间:
2020-06-23 21:45:00
阅读次数:
111
Being a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural number is posit ...
分类:
其他好文 时间:
2020-06-23 21:22:33
阅读次数:
63