############### python-异常的操作 ############### # 异常:python解释器遇到一个错误,会停止程序的执行,并且提示错误信息,这就是异常, # 抛出异常:python停止程序,提示错误,这就是抛出异常 # 捕获异常: # 捕获异常的语法: # try: # ...
分类:
编程语言 时间:
2020-02-10 09:19:37
阅读次数:
71
//容器queue于stack相似,内部含有stack,本质算为容器的适配器 #include<iostream> #include<queue> using namespace std; int main(){ queue<int>q; q.push(1); q.push(2); cout<<q. ...
分类:
其他好文 时间:
2020-02-10 09:15:08
阅读次数:
56
摘要 通过实现MapReduce计算结果保存到MySql数据库过程,掌握多种方式保存计算结果的技术,加深了对MapReduce的理解; Api 文档地址:http://hadoop.apache.org/docs/current/api/index.html maven资源库:https://mvn ...
分类:
数据库 时间:
2020-02-09 23:58:39
阅读次数:
155
错误信息 1 Exception in thread "main" java.sql.SQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: ...
分类:
数据库 时间:
2020-02-09 20:32:52
阅读次数:
70
@PathVariable和@RequestParam的区别 @PathVariable 是从请求的URL路径里面去获取变量 @RequestParam,是从请求里面获取参数 例如, 如下controller: @RequestMapping(value = "/test/{pathParam}") ...
分类:
其他好文 时间:
2020-02-09 18:48:19
阅读次数:
72
Java 集合框架 早在Java 2中之前,Java就提供了特设类。比如:Dictionary, Vector, Stack, 和Properties这些类用来存储和操作对象组。 虽然这些类都非常有用,但是它们缺少一个核心的,统一的主题。由于这个原因,使用Vector类的方式和使用Propertie ...
分类:
编程语言 时间:
2020-02-09 18:47:14
阅读次数:
104
/**判断是否超过多少小时 如:24 * * @param tableTime 业务时间 * @param hour 多少小时 * @return boolean * @throws Exception */ public static boolean judgmentDate(String tab ...
分类:
编程语言 时间:
2020-02-09 18:37:13
阅读次数:
534
package com.zengfh.testcase; import org.openqa.selenium.By;import org.openqa.selenium.JavascriptExecutor;import org.openqa.selenium.WebDriver;import o ...
分类:
其他好文 时间:
2020-02-09 18:22:57
阅读次数:
70
```c++#include#includeusing namespace std;const int MA=1005;int stack[MA];int a[MA];int top=-1;int main(){ int n; cin>>n; for(int i=1;i<=n;i++) scanf(... ...
分类:
其他好文 时间:
2020-02-09 14:50:38
阅读次数:
52
//容器stack,其源代码包含着deque,其本质也可被称为容器的适配器 //容器stcak中不能进行定位插入或着删除,因为一旦进行定位插入和删除,那么栈这个容器的封闭性将会被破坏 #include <iostream> #include <stack> using namespace std; ...
分类:
其他好文 时间:
2020-02-09 12:04:02
阅读次数:
78