首先用的是struts2的框架,分两种情况: 1. 集合list里面是值,不是对象,后台代码: 前台代码: 首先,引入相应的标签和js库 (1)引入jstl标签库,<%@taglib uri="http://Java.sun.com/jsp/jstl/core" prefix="c"%> (2)引入 ...
分类:
Web程序 时间:
2018-01-02 18:48:49
阅读次数:
613
1.第一种:给定一行字符,逆序输出此字符串(空格.数字不输出),如“ab 23,(4 cd”输出“dc(,ba”。(要求:使用面向对象封装+继承) 2.第二种:输入数字n,是奇数n就变为3n+1,是偶数就是n/2,经过若干次这样的变换,一定会使n变为1,求输出变换的次数,并要求次数是 除以3的余数 ...
分类:
编程语言 时间:
2018-01-02 18:46:53
阅读次数:
184
字符串多次替换:(替换了四次) SELECTREPLACE(REPLACE(REPLACE(REPLACE( T5, substring( T5, LOCATE('&timeStamp', T5), 24 ), '' ),substring( T5, LOCATE('&accessSignature ...
分类:
数据库 时间:
2018-01-02 11:35:10
阅读次数:
322
一、批量查询 mget GET /_mget{ "docs":[ { "_index":"ecommerce", "_type":"product", "_id":1 }, { "_index":"ecommerce", "_type":"product", ... ...
分类:
其他好文 时间:
2017-12-31 15:29:21
阅读次数:
206
自定义classloader MapleClassLoader 测试 测试结果 ...
分类:
其他好文 时间:
2017-12-31 13:36:49
阅读次数:
117
import timeimport requestsfrom bs4 import BeautifulSoupimport threadingdef format_str(s): return s.replace("\n","").replace("","").replace("\t",'')def ...
分类:
编程语言 时间:
2017-12-31 11:56:36
阅读次数:
140
f = open("1.txt", "r", encoding="utf-8") f_new = open("2.txt", "w", encoding="utf-8") find_str = "wangzai" replace_str = "doubi" for line in f: if fin... ...
分类:
编程语言 时间:
2017-12-30 18:12:55
阅读次数:
127
In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For... ...
分类:
其他好文 时间:
2017-12-30 00:26:47
阅读次数:
168
create or replace procedure PROC_P_ABC is v_sumday number :=0; i number :=0; v_calendar_date number :=null; v_day number :=null; begin select to_date(... ...
分类:
数据库 时间:
2017-12-29 21:49:36
阅读次数:
210
以下是字符串常用的一些操作。 3. 连接(用join()把list, tuple,dict 连接成字符串) 4. 分割 (spilt() 把字符串分割成list) 5. 转换字母大小写(首字母大写),所有字母大写,所有字母小写,打印带有样式的字符串,以...开头, 以...结束,字符串替换 6. 字 ...
分类:
编程语言 时间:
2017-12-29 21:47:35
阅读次数:
378