const 命令 const 声明一个只读变量,声明之后不允许改变。意味着,一旦声明必须初始化,否则会报错。 基本用法: const PI = "3.1415926"; PI // 3.1415926 const MY_AGE; // SyntaxError: Missing initializer ...
分类:
其他好文 时间:
2020-06-24 09:17:48
阅读次数:
86
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
以爱词霸翻译为例:http://fy.iciba.com 为了方便查看,使用筛选器filters只展示fy.iciba.com的请求。 在爱词霸翻译test查看原本结果 一、请求前修改数据: 在fiddler上设置断点:rules-automatic breakpoints-before reque ...
分类:
Web程序 时间:
2020-06-23 19:19:52
阅读次数:
71
script script is the only required keyword that a job needs. It's a shell script which is executed by the Runner. For example: job: script: "bundle ex ...
分类:
其他好文 时间:
2020-06-23 18:56:37
阅读次数:
111
vim /etc/systemd/system/node_exporter.service [Unit] Description=node_exporter Documentation=https://prometheus.io/ After=network.target [Service] Typ ...
分类:
系统相关 时间:
2020-06-22 17:16:37
阅读次数:
107
手动创建Function SQL> @?/rdbms/admin/owmctab.plb SQL> @?/rdbms/admin/owmaggrs.plb SQL> @?/rdbms/admin/owmaggrb.plb Before Oracle Database 12c, an Invoker ...
分类:
其他好文 时间:
2020-06-22 13:20:34
阅读次数:
200
环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 假设 Assumptions 即假设,JUnit 用它来确定条件满足的情况下才执行测试,否则就直接忽略。 如果是在 @Before 或者 @BeforeClass 方法中,和放在 @Tes ...
分类:
其他好文 时间:
2020-06-22 13:08:25
阅读次数:
46
##目录 多线程需要解决的问题 线程之间的通信 线程之间的同步 Java内存模型 内存间的交互操作 指令屏障 happens-before规则 指令重排序 从源程序到字节指令的重排序 as-if-serial语义 程序顺序规则 顺序一致性模型 顺序一致性模型特性 顺序一致性模型特性 当程序未正确同步 ...
分类:
编程语言 时间:
2020-06-22 01:23:32
阅读次数:
56
Django rest framework源码分析(3) 节流 添加节流 自定义节流的方法 限制60s内只能访问3次 (1)API文件夹下面新建throttle.py,代码如下: # utils/throttle.py from rest_framework.throttling import Ba ...
分类:
其他好文 时间:
2020-06-21 20:12:57
阅读次数:
44
cd /etc/yum.repos.d vim CentOS-Debuginfo.repo enable = 1 yum install glibc debuginfo-install glibc.x86_64 0:2.17-307.el7.1 ...
分类:
数据库 时间:
2020-06-21 17:52:26
阅读次数:
108