public static void main(String[] args) { Gson gson = new Gson(); List persons = new ArrayList(); for (int i = 0; i () { }...
分类:
其他好文 时间:
2015-07-30 13:22:25
阅读次数:
101
购买了阿里的云ECS,装载的是windows 2008 R2 64bit系统,要搭建mvc3的网站,然后出现了各种没见过的错误信息。。。1、HTTP Error 403.14 - ForbiddenThe Web server is configured to not list the conten...
分类:
Web程序 时间:
2015-07-30 13:16:21
阅读次数:
108
最初的构想是,将Fragment和ViewPager结合起来,然后突发奇想,在第一个Fragment里添加了ListView,依照网上的建议,extends了ListFragment,接着各种报错。仔细看了下,原来是MainActivity这里:1 //构造适配器2 List fragments=....
分类:
其他好文 时间:
2015-07-30 13:09:48
阅读次数:
117
public ActionResult Index() { IList regList = new List() { new RegisterModel{ UserName ="zhangsan", Password="12...
分类:
其他好文 时间:
2015-07-30 12:59:11
阅读次数:
125
npm -v #显示版本,检查npm 是否正确安装。npm install express #安装express模块npm install -g express #全局安装express模块npm list #列出已安装模块npm show express #显示模块详情npm update #升级...
分类:
其他好文 时间:
2015-07-30 12:45:15
阅读次数:
113
Python的迭代器和生成器
先说迭代器,对于string、list、dict、tuple等这类容器对象,使用for循环遍历是很方便的。在后台for语句对容器对象调用iter()函数,iter()是python的内置函数。iter()会返回一个定义了next()方法的迭代器对象,它在容器中逐个访问容器内元素,next()也是python的内置函数。在没有后续元素时,next()会...
分类:
编程语言 时间:
2015-07-30 11:36:09
阅读次数:
149
1.单一样式 $('.list li').css( "float", "none"); 2. 多个样式 $('.list li').css( { "float": "none", "color": "red" });
分类:
Web程序 时间:
2015-07-30 10:44:30
阅读次数:
146
题目:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
题解:将一个有序链表转成二叉排序树,如果是一棵相对平衡的排序树,应该是这样的,链表中间那个节点为树的根节点,根节点的左子树节点应该是根节点左边那部分的中间节点,根节点的...
分类:
编程语言 时间:
2015-07-30 09:33:16
阅读次数:
150
如何去除List中的重复值?感谢 http://bbs.csdn.net/topics/390247210。供自己参考:1、通过循环进行删除public static void removeDuplicate(List list) { for ( int i = 0 ;...
分类:
其他好文 时间:
2015-07-30 07:03:21
阅读次数:
183
# This is a basic configuration file with some examples, for device mapper # multipath. # For a complete list of the default configuration values, see...
分类:
其他好文 时间:
2015-07-30 01:56:21
阅读次数:
451