异常对象的printStackTTrace()方法用于打印异常的跟踪栈信息,根据printStackTTrace()方法输出的结果,开发者可以找到异常的源头,并跟踪到异常一路触发的过程。 下面测试printStackTrace的例子: 运行上面的程序可以看出如下图所示的结果: 从图可以看出异常从th ...
分类:
编程语言 时间:
2020-04-03 23:41:50
阅读次数:
84
leetcode 53. Maximum Subarray 链接 "leetcode" 描述 Given an integer array nums, find the contiguous subarray (containing at least one number) which has th ...
分类:
其他好文 时间:
2020-04-03 16:25:10
阅读次数:
60
本题考点:中缀表达式转后缀表达式。 难点: 1. 带有小数的数字 2. 数字可能带有正负号 题目描述: 算术表达式有前缀表示法、中缀表示法和后缀表示法等形式。日常使用的算术表达式是采用中缀表示法,即二元运算符位于两个运算数中间。请设计程序将中缀表达式转换为后缀表达式。 本题的测试点如下: | 输入 ...
分类:
其他好文 时间:
2020-04-02 22:22:53
阅读次数:
203
测试一下Linux下面删除大量文件的效率。 首先建立50万个文件 $ test for i in $(seq 1 500000);do echo text >>$i.txt;done 1. rm删除 $ time rm -f * zsh: sure you want to delete all th ...
分类:
系统相关 时间:
2020-04-02 22:15:55
阅读次数:
109
腾讯官网 body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0} body{font:12px"宋体","Arial Narrow",HELVE ...
分类:
Web程序 时间:
2020-04-02 15:43:10
阅读次数:
101
1、运行,fiddler,选择Rules—>Cutomize Rules打开CustomRules.js 文档 2.修改如下图部分: if (m_SimulateModem) { // Delay sends by 300ms per KB uploaded. oSession["request-t ...
分类:
其他好文 时间:
2020-04-02 11:59:24
阅读次数:
88
1 点击Help -- Eclipse Marketplace 2 搜索 thymeleaf 3 点击 install 安装 4 勾选 我同意.... 5 重启 eclipse 6 在html文件中写好thymeleaf的声明: <html xmlns:th="http://www.thymelea ...
分类:
系统相关 时间:
2020-04-01 11:00:07
阅读次数:
80
解决: 'NSUnknownKeyException', reason: '[<ViewController 0x7fdf7048b200> setValue:forUndefinedKey:]: this class is not key value coding-compliant for th ...
分类:
其他好文 时间:
2020-04-01 00:45:25
阅读次数:
52
Attack on Red Kingdom The Red Kingdom is attacked by the White King and the Black King! The Kingdom is guarded by $n$ castles, the $i$ th castle is de ...
分类:
其他好文 时间:
2020-03-30 11:20:13
阅读次数:
105
The next lecture in a high school requires two topics to be discussed. The ii -th topic is interesting by aiai units for the teacher and by bibi units ...
分类:
其他好文 时间:
2020-03-29 01:44:16
阅读次数:
280