一、重复提交的例子: 模拟一种情况,存在延时啊,系统比较繁忙啊啥的。 模拟延迟5s钟,用户点了一次提交,又点了一次提交,例子中模拟这种情况; 这样会造成重复提交; com.cy.action.StudentAction.java: package com.cy.action; import java ...
分类:
其他好文 时间:
2017-07-02 13:47:35
阅读次数:
218
D1T1.玩具谜题 题目链接 直接模拟就好了……water。(然而比赛的时候数组开少了一个0) 1 #include<cstdio> 2 int n,m,a,s,ans; 3 struct node{char name[12];int dir;}x[100050]; 4 int main() 5 { ...
分类:
其他好文 时间:
2017-07-01 18:21:55
阅读次数:
295
格式: date [选项] ... [+格式] 选项说明: -d ,--date=字符串 显示指定字符串所描述的时间 格式说明: 例子1: #!/bin/bash ##1. 获取当前系统时间 YYYY-MM-DD HH:MM:SS v_time_eq=`date "+%F %T"` v_time=` ...
分类:
系统相关 时间:
2017-07-01 14:30:23
阅读次数:
512
习题 10: 那是什么? 在习题 9 中我你接触了一些新东西。我让你看到两种让字符串扩展到多行的方法。第一种方法是在月份之间用 \n (back-slash n )隔开。这两个字符的作用是在该位置上放入一个“新行(new line)”字符。 使用反斜杠 \ (back-slash) 可以将难打印出来 ...
分类:
编程语言 时间:
2017-07-01 11:57:03
阅读次数:
217
1 <!DOCTYPE html> 2 <html> 3 <head lang="en"> 4 <meta charset="UTF-8"> 5 <title>转换文本-只在IE上有效</title> 6 </head> 7 <body> 8 <input type="text" name="txt ...
分类:
其他好文 时间:
2017-06-30 17:23:48
阅读次数:
215
configparser模块 该模块适用于配置文件,配置文件类似于windows的ini文件相似。可以包含一个或多个节(section)。 导入该模块 创建对象实例 subprocess模块 当我们需要调用系统的命令的时候,最先考虑的os模块。用os.system()和os.popen()来进行操作 ...
分类:
其他好文 时间:
2017-06-30 13:51:25
阅读次数:
156
1.实现前置增强 必须实现接口MethodBeforeAdvice接口 创建对应的文件 public interface Animal {//主业务接口 void eat(); //目标方法 void sleep(); } public class Dog implements Animal {// ...
分类:
编程语言 时间:
2017-06-30 09:47:53
阅读次数:
198
1.创建需要的实体类 public class Student { //学生实体类 private String name; //姓名 private Integer age; //年龄 private Grade grade; //年级 @Override public String toStri ...
分类:
编程语言 时间:
2017-06-30 09:45:14
阅读次数:
159
print("\033[35m Hello,world! \033[0m") print("\033[45m Hello,world! \033[0m") 高亮显示、下划线、反白显示 print("\033[31m Hello,world! \033[0m") print("\033[1;31m H ...
分类:
编程语言 时间:
2017-06-29 14:02:24
阅读次数:
210
1、Controller的引入 1)需要Controller的原因?需要多个用户来模拟并发的时候。 2)一种强大的、成熟的工具的体现。 2、 Controller的启动方式 1)LoadRunner Launcher - Run Load Tests 2)在开始菜单中 3)在VuGen中 一般con ...
分类:
其他好文 时间:
2017-06-29 00:59:24
阅读次数:
952