码迷,mamicode.com
首页 >  
搜索关键字:python list    ( 182949个结果
[leetcode]Populating Next Right Pointers in Each Node @ Python
原题地址:https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/题意: 1 / \ 2 3 / \ / \ 4 5 6 7变为: ...
分类:编程语言   时间:2014-05-26 23:43:29    阅读次数:332
leetcode -- Flatten Binary Tree to Linked List
算法:1. 对root的左子树做处理,让左子树的根节点作为,根节点的右子树,并让右子树作为左子树根节点的右子树的子树2. 递归遍历右子树public void flatten(TreeNode root) { if(root==null){ return; ...
分类:其他好文   时间:2014-05-26 23:39:49    阅读次数:253
Samba服务器的配置与使用
1、系统环境变量Fedora: yum install libacl-devel libblkid-devel gnutls-devel \ readline-devel python-devel gdb pkgconfig libattr-devel \ krb5-workstationD...
分类:其他好文   时间:2014-05-26 23:19:30    阅读次数:394
[Python]网络爬虫(四):Opener与Handler的介绍和实例应用(转)
在开始后面的内容之前,先来解释一下urllib2中的两个个方法:info and geturlurlopen返回的应答对象response(或者HTTPError实例)有两个很有用的方法info()和geturl()1.geturl():这个返回获取的真实的URL,这个很有用,因为urlopen(或...
分类:编程语言   时间:2014-05-26 23:17:30    阅读次数:352
[Python]网络爬虫(三):异常的处理和HTTP状态码的分类(转)
先来说一说HTTP的异常处理问题。当urlopen不能够处理一个response时,产生urlError。不过通常的Python APIs异常如ValueError,TypeError等也会同时产生。HTTPError是urlError的子类,通常在特定HTTP URLs中产生。1.URLError...
分类:编程语言   时间:2014-05-26 23:17:09    阅读次数:341
[leetcode]Copy List with Random Pointer @ Python
原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A linked list is given such that each node contains an additional random pointe...
分类:编程语言   时间:2014-05-26 23:16:12    阅读次数:368
python 学习笔记 三 字典
字典Python的高效的key/value哈希表结构叫做"dict", dict的内容可以写成一系列的key:value对并放入{ }中, 相当于: dict = {key1:value1, key2:value2, ...}, 一个空的字典就是俩个大括号{ }. 下面是从一个空字典创建字典以及一些...
分类:编程语言   时间:2014-05-26 22:46:30    阅读次数:342
myBatis批量添加,修改和删除
摘自:http://blog.csdn.net/myjlvzlp/article/details/84343761、批量添加元素session.insert(String string,Object o)public void batchInsertStudent(){ List ls = n...
分类:其他好文   时间:2014-05-26 22:43:20    阅读次数:239
导出excel
导出excel时,我以前使用的是POI,如下:public class Test { private void exportEXCEL(List d502s) { Field[] fields = d502s.get(0).getClass().getDeclaredFields...
分类:其他好文   时间:2014-05-26 22:30:03    阅读次数:383
github开源库(三)
41.android-swipelistviewSwipeListView是一个Android List View实现,实现了自定义ListView单元格,可通过滑动来显示扩展面板。开发者可直接登陆Google Play下载安装其Demo应用。42.greenDAOgreenDAO是一个可以帮助An...
分类:其他好文   时间:2014-05-26 22:00:33    阅读次数:379
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!