将下面的代码添加到主题的functions.php就可以给分类添加分类模板 //指定文章模板 function load_single_template($template) { $new_template = ''; // single post template if( is_single() ...
分类:
其他好文 时间:
2020-09-03 17:03:30
阅读次数:
52
前言 我在做知识竞赛答题活动小程序经常需要处理一些比较基础的事情,比如时间、数组、数字、对象、字符串等处理,自己造轮子的话成本会比较高。这时候我们可以去找一些别人已经写好的开源模块或者开源库,我们直接下载下来引入使用即可。下面就列举一些我在项目中使用过的并且比较好用的工具,来帮助我们快速开发我们的业 ...
分类:
微信 时间:
2020-09-03 17:02:58
阅读次数:
79
http://acm.hdu.edu.cn/showproblem.php?pid=6880 根据长度为n的排列a,构造长度n-1的序列b 思路:DP 官方题解: 代码: #include<iostream> #include<cstdio> #include<cstring> #include<a ...
分类:
其他好文 时间:
2020-09-03 17:00:42
阅读次数:
38
class Solution { List<Integer> temp = new ArrayList<Integer>(); List<List<Integer>> ans = new ArrayList<List<Integer>>(); public List<List<Integer>> f ...
分类:
其他好文 时间:
2020-09-03 16:59:05
阅读次数:
46
#liunx 下php安装memcached扩展 memcached扩展是基于libmemcached,所以要先安装libmemcached 一:安装libmemcached 1、wget https://launchpadlibrarian.net/165454254/libmemcached-1 ...
分类:
Web程序 时间:
2020-09-03 16:54:45
阅读次数:
60
undefinded 未定义,或者未声明,或者变量被声明后,但未被赋值 null 为空,表示无值 number string boolean array object 注意: ‘’空串属于字符串String,不是null 注意:如果判断获取的input标签是否有内容,应该是用””(空串来进行判断,而 ...
分类:
编程语言 时间:
2020-09-03 16:50:07
阅读次数:
48
BASE64压缩与解压 /** * 字符串的压缩 * * @param base64 待压缩的字符串 * * @return 返回压缩后的字符串 * * @throws IOException */ public static String zipBase64(String base64) thro ...
分类:
其他好文 时间:
2020-09-03 16:39:55
阅读次数:
80
bean 标签解析的第一步:解析 BeanDefinition 的大致过程 ...
分类:
编程语言 时间:
2020-09-03 16:36:56
阅读次数:
35
本章章节 > 11.1认识集合类> 11.2 Collection接口及其子接口> 11.3 Collection 接口及其子接口的常见实现类> 11.4通过迭代方法访问集合> 11.5 Map> 11.6 从以前版本遗留下来的类和接口> 11.7 hashCode()方法> 11.8 对象克隆> ...
分类:
编程语言 时间:
2020-09-03 16:33:52
阅读次数:
39
二维数组的概念: 二维数组本质上就是由多个一维数组摞在一起组成的数组,二维数组中的每个元素都是一维数组,而一维数组中的每个元素才是数组内容。 图1:一维数组,长度2 图2:二维数组,二维数组中又分为了两个一维数组,分别是arr[0],与arr[1]; int[][] brr = new int[2] ...
分类:
编程语言 时间:
2020-09-02 18:13:08
阅读次数:
86