//ini_set('error_reporting', 0); ini_set('error_reporting',E_ALL);//设置报告错误级别 $debug = false; if($debug){ //为true时,将错误显示在浏览器 ini_set("display_errors"," ...
分类:
Web程序 时间:
2020-07-19 17:43:48
阅读次数:
95
最近在进行开发的时候,发现之前的sogou拼音会出现乱码;就像下面这样:(图片来源自网络) 为了解决,这个问题,网友找到很多方法;但都是临时解决。根本原因应该是软件的bug。安装google输入法,可以绕开上述问题,节约折腾时间; 安装方法: apt-get install fcitx sudo a ...
分类:
系统相关 时间:
2020-07-19 15:58:37
阅读次数:
92
goreplay v1.1.0 将pro 的代码合并到了社区版本中(使用了不同的许可协议) 以下是修改配置,进行pg 数据协议的捕捉 编译pro 特性的代码 clone 代码 git clone https://github.com/buger/goreplay.git 修改代码支持pro 特性 修 ...
分类:
其他好文 时间:
2020-07-19 15:55:24
阅读次数:
49
一、什么是单元测试 单元测试是用来对一个模块、一个函数或者一个类来进行正确性检验的测试工作。如果测试通过则说明我们这个函数或功能能够正常工作,如果失败要么测试用例不正确,要么函数有bug需要修复。 二、如何使用单元测试 from django.test import TestCase from ap ...
分类:
其他好文 时间:
2020-07-19 11:51:22
阅读次数:
121
package LeetCode_1060 /** * 1060. Missing Element in Sorted Array * (Prime) * Given a sorted array A of unique numbers, find the K-th missing number s ...
分类:
其他好文 时间:
2020-07-19 00:49:27
阅读次数:
93
用循环依次对list中的每个名字打印出 Hello, xxx! L = ['Bart', 'Lisa', 'Adam']x = len(L) for i in range(x): print('Hello,', L[i]) 此处,若直接使用 for i in x 时,编译报错:TypeError: ...
分类:
编程语言 时间:
2020-07-18 22:45:27
阅读次数:
95
agc041_d Problem Scores https://atcoder.jp/contests/agc041/tasks/agc041_d Tutorial https://img.atcoder.jp/agc041/editorial.pdf 由于$A_i \le A_{i+1}$,所以设 ...
分类:
其他好文 时间:
2020-07-18 22:13:51
阅读次数:
61
China and Buddhism By far the most important gift that China received from India was neither cotton, nor sugar, nor the knowledge of saltpeter, but a ...
分类:
其他好文 时间:
2020-07-18 15:35:38
阅读次数:
83
今日学习Springmvc遇见一个bug,在配置视图解析器的时候,后缀配得是.html,路径完全正确的情况下,视图解析器解析不到。换jsp文件可以正常访问 <bean id="InternalResourceViewResolver" class="org.springframework.web.s ...
分类:
编程语言 时间:
2020-07-18 15:27:13
阅读次数:
98
给定一张图,图中给出一些有向边,一些无向边。 要求给所有无向边赋予方向后能够使整张图无环。 已知给定的图中无自环,无重边 解题思路: 若给定的有向边已经成环,那么必然输出NO,否则都可以构造出解。 考虑原图的拓扑排序,根据两点的进队时间,对于某一无向边,只要使边上两点进队时间也满足拓扑序,就可以使得 ...
分类:
其他好文 时间:
2020-07-18 13:32:35
阅读次数:
66