一、日志收集端 1、nginx:nginx-1.16.1.tar.gz 为了kibana收集nginx日志获取字段,先将日志转化为json格式。格式样式如下: log_format access_json '{"@timestamp":"$time_iso8601",' '"host":"$serv ...
分类:
其他好文 时间:
2020-03-31 12:16:39
阅读次数:
95
先做个热身 //递归:函数执行的时候自己调用自己 // function fn(){ // fn(); //Uncaught RangeError: Maximum call stack size exceeded // 这种死递归会导致栈溢出 // } // fn(); // function f ...
分类:
编程语言 时间:
2020-03-31 12:16:24
阅读次数:
77
import turtle class Stack: def __init__(self): self.items = [] def isEmpty(self): return len(self.items) == 0 def push(self, item): self.items.append( ...
分类:
其他好文 时间:
2020-03-31 10:23:45
阅读次数:
120
import turtle class Stack: def __init__(self): self.items = [] def isEmpty(self): return len(self.items) == 0 def push(self, item): self.items.append( ...
分类:
编程语言 时间:
2020-03-30 21:46:18
阅读次数:
79
1、集合输出在之前我们利用了toString()及get()方法对集合进行了输出,其实那都不是集合的标准输出,集合输出有四种方式:Iterator、ListIterator、Enumeration、foreach。(1)Iterator(迭代输出)在jdk1.5之前,在Collection接口中就有 ...
分类:
其他好文 时间:
2020-03-30 21:22:06
阅读次数:
77
栈内存和堆内存在了解一门语言底层数据结构上,挺重要的,做了个总结 JS中的栈内存堆内存 JS的内存空间分为栈(stack)、堆(heap)、池(一般也会归类为栈中)。 其中栈存放变量,堆存放复杂对象,池存放常量,所以也叫常量池。 栈数据结构 栈是一种特殊的列表,栈内的元素只能通过列表的一端访问,这一 ...
分类:
Web程序 时间:
2020-03-30 16:10:54
阅读次数:
63
一、概述 栈(Stack),也叫堆栈。但是不能称为堆,堆是另外一种数据结构 FILO栈遵循先进后出的原则(First In Last Out) 基本操作有:入栈(压栈)、出栈(退栈) 入栈和出栈都是针对栈顶的操作 二、结构示意图 依次将a、b、c元素压进一个空栈中: 将上述栈中的元素一个一个出栈 由 ...
分类:
其他好文 时间:
2020-03-30 16:04:16
阅读次数:
105
Problem Statement Problem Dr. Patel has N stacks of plates. Each stack contains K plates. Each plate has a positive beauty value, describing how beaut ...
分类:
其他好文 时间:
2020-03-30 09:49:38
阅读次数:
81
React Navigation 4x 与 React Navigation 5x混用造成的报错, 4x版本包:react-navigation, react-navigation-stack, react-navigation-drawer 5x版本包:@react-navigation/nati ...
分类:
其他好文 时间:
2020-03-30 00:26:30
阅读次数:
470
leetcode题目位置:面试题24.反转链表 https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof/ 思路:借助栈的先进后出来进行反转,或者通过一个next节点来进行保存要反转到头的那个节点,防止链断裂 /** * Definition ...
分类:
其他好文 时间:
2020-03-29 10:24:17
阅读次数:
57