[TOC] 请求扩展 Flask 里面的请求扩展相当于 Django 的中间件 1. before_first_request 当项目启动后,接收到的第一个请求,就会执行 before_first_request 装饰的函数,执行顺序也是谁先注册就谁先执行 2. before_request 请求没 ...
分类:
其他好文 时间:
2020-03-19 17:48:28
阅读次数:
71
个人理解Oracle的process类似于MySQL的connection 若连接数超过process时,通过sqlplus登陆Oracle会有如下报错。 ERROR: ORA-00020: maximum number of processes (40) exceeded 使用ps -ef|gre ...
分类:
数据库 时间:
2020-03-19 17:43:25
阅读次数:
63
[TOC] flask的配置文件 方式三的配置文件: 类似Django一样,一个专门的配置文件 方式四的配置类: 优点:一个文件,多套配置。不同的类不同的配置,减少了测试与上线的更改的配置项 可以配置的属性 ...
分类:
其他好文 时间:
2020-03-19 16:33:24
阅读次数:
47
题目描述 从上往下打印出二叉树的每个节点,同层节点从左到右打印。 例如,以下二叉树层次遍历的结果为:1,2,3,4,5,6,7 解题思路 使用队列来进行层次遍历。 不需要使用两个队列分别存储当前层的节点和下一层的节点,因为在开始遍历一层的节点时,当前队列中的节点数就是当前层的节点数,只要控制遍历这么 ...
分类:
其他好文 时间:
2020-03-19 13:25:42
阅读次数:
64
报错:error no. 1045 access denied for user 'root'@'*****' (using password:YES)。 百翻查询才知道:MySql-Server 出于安全方面考虑默认只允许本机(localhost, 127.0.0.1)来连接访问. !!!所以必须 ...
分类:
数据库 时间:
2020-03-19 13:17:48
阅读次数:
70
单机程序(自己DB) 单机程序(公用DB) MySQL:假设是用于管理文件的一个软件,数据库就像windows上的文件夹,表就是文件夹里面的文件,可以用MySQL的各种SQL语句管理这些文件夹,文件,,, 对数据库的操作: 文件夹 show databases; use dataname; show ...
分类:
数据库 时间:
2020-03-19 10:51:13
阅读次数:
316
地址:https://leetcode-cn.com/problems/two-sum/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/3/18 * Time: 下午6:23 */ /** * 给定一个整数数组 nums 和 ...
分类:
其他好文 时间:
2020-03-19 09:35:48
阅读次数:
69
``````#include<stdio.h>intmain(){inta,b,c,count=0;charch;scanf("%d",&a);while((ch=getchar())!=‘=‘){scanf("%d",&b);if((ch==‘/‘)&&(b==0)){count=
分类:
其他好文 时间:
2020-03-19 09:26:08
阅读次数:
149
返回主页 回到顶端 Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' → http://www.voidcn.com/article/p-acuzfamf-bbs.html Error creati ...
分类:
其他好文 时间:
2020-03-18 23:51:58
阅读次数:
76
一,介绍 定义: In CPython, the global interpreter lock, or GIL, is a mutex that prevents multiple native threads from executing Python bytecodes at once. Th ...
分类:
编程语言 时间:
2020-03-18 23:43:44
阅读次数:
76