Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop o ...
分类:
其他好文 时间:
2020-06-08 00:29:09
阅读次数:
53
Given a binary tree, return the sum of values of nodes with even-valued grandparent. (A grandparent of a node is the parent of its parent, if it exist ...
分类:
其他好文 时间:
2020-06-08 00:15:28
阅读次数:
76
Spring Bean 生命周期 1. Spring Bean 元信息配置阶段2. Spring Bean 元信息解析阶段3. Spring Bean 注册阶段4. Spring BeanDefinition合并阶段5. Spring Bean Class 加载阶段6. Spring Bean 实例 ...
分类:
编程语言 时间:
2020-06-07 21:25:26
阅读次数:
73
<?php $con = new mysqli('localhost','root','root','edu');//地址,账户,密码,edu代表的数据库 // $sql='insert into grade (name,tid) values("a","2")'; $sql='select * f ...
分类:
数据库 时间:
2020-06-07 21:15:21
阅读次数:
90
使用Tomcat,一定见到过404,500的时候,见到过Tomcat提供的错误页面,例如请求的资源找不到的时候,响应状态码为404,这个时候的错误页面是这样的: 这些错误页面是 如何生成及定位展示的 ,如果我们要 自定义一些错误页面 ,又要怎么做呢?今天我们一起来看看,Tomcat中提供的Error ...
分类:
其他好文 时间:
2020-06-07 14:52:35
阅读次数:
123
静态属性 类方法 静态方法 静态属性property 作用 静态属性就是将类中方法封装,在python中利用@property语句实现。property的作用实际上非常强大。它可以允许将某一方法不用加括号就直接调用,看起来就跟访问属性一样,也可以控制对某一属性的增删改查之类的操作。它有一个别称叫做“ ...
分类:
其他好文 时间:
2020-06-07 09:12:34
阅读次数:
63
1. Write a Java program to reverse an array of integer values. package com.w3resource; import java.util.Arrays; public class ReverseArray { public sta ...
分类:
编程语言 时间:
2020-06-07 01:00:04
阅读次数:
74
MySQL SQL介绍 一、MySQL SQL介绍 1.1.1 SQL 应用基础 SQL(结构化查询语句)介绍 SQL标准:SQL 92 SQL99 5.7版本后启用SQL_Mode 严格模式 SQL作用 SQL 用来管理和操作MySQL内部的对象 SQL对象: 库:库名,库属性 表:表名,表属性, ...
分类:
数据库 时间:
2020-06-05 15:32:10
阅读次数:
72
journalctl 日志查看方法 来源:https://www.cnblogs.com/leigepython/p/10302056.html 1 概述 日志管理工具journalctl是centos7上专有的日志管理工具,该工具是从message这个文件里读取信息。Systemd统一管理所有Un ...
分类:
系统相关 时间:
2020-06-05 10:21:24
阅读次数:
106
topk问题是一个十分经典的问题,解决该问题主要有两种思路。 第一种是利用 堆 结构,讲解:https://www.cnblogs.com/chengxiao/p/6129630.html 第二种是利用 快速排序 先回顾一下实现堆结构的代码: package LCtest.com; import j ...
分类:
其他好文 时间:
2020-06-05 00:54:50
阅读次数:
54