码迷,mamicode.com
首页 >  
搜索关键字:python list tuple    ( 183691个结果
“商城项目”自定义搜索框
1.要实现搜索的效果图如下:《功能:当输入关键字点击搜索按钮的时候在list上显示出来,点击商品进入商品详情页即可》2>自定义搜索框,在导航栏视图上添加搜索视图,代码如下:3>搜索结果的tableView,定义一个数组将解析数据的内容存取到数组中,将数组的个数加一,最后多得一行作为清除历史记录的一行...
分类:其他好文   时间:2014-05-12 15:20:20    阅读次数:253
Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.思路:合并k个有序链表为一个有序链表。我们可以用先合并两个链表的方法,然后逐个遍历链表数组,与上一个合并结束...
分类:其他好文   时间:2014-05-12 15:07:06    阅读次数:305
[leetcode]Balanced Binary Tree @ Python
原题地址:http://oj.leetcode.com/problems/balanced-binary-tree/题意:判断一颗二叉树是否是平衡二叉树。解题思路:在这道题里,平衡二叉树的定义是二叉树的任意节点的两颗子树之间的高度差小于等于1。这实际上是AVL树的定义。首先要写一个计算二叉树高度的函...
分类:编程语言   时间:2014-05-12 14:51:47    阅读次数:304
[leetcode]Construct Binary Tree from Preorder and Inorder Traversal @ Python
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/题意:根据二叉树的先序遍历和中序遍历恢复二叉树。解题思路:可以参照http://www.cnblogs.com...
分类:编程语言   时间:2014-05-12 14:24:57    阅读次数:324
(未解决)WIN8下使用POWERSHELL安装python easy_install无法成功
按照https://pypi.python.org/pypi/setuptools#windows-8-powershell介绍的方法, 安装未成功。安装似乎没有启动, 也未安装成功。Windows 8 (Powershell)For best results, uninstall previous...
分类:编程语言   时间:2014-05-12 14:10:29    阅读次数:433
[leetcode]Construct Binary Tree from Inorder and Postorder Traversal @ Python
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/题意:根据二叉树的中序遍历和后序遍历恢复二叉树。解题思路:看到树首先想到要用递归来解题。以这道题为例:如果一...
分类:编程语言   时间:2014-05-12 14:09:28    阅读次数:321
day5_python学习笔记_chapter6_字符串列表元组
1. 序列:seq[n], seq[x:y], seq * n序列重复n次,切片, 序列翻转 s=”abcde", s[::-1]="edcba" 内建函数:1. 类型转换: list(iter), str(obj), unicode(obj), tuple(iter) , 2. len(seq)....
分类:编程语言   时间:2014-05-12 13:57:06    阅读次数:424
List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user
当我在subsite里点击”Add a document”,报这个错,后来一看event log: 在AAM里加上一条: 问题搞定:
分类:其他好文   时间:2014-05-12 13:14:07    阅读次数:306
[leetcode]Binary Tree Inorder Traversal @ Python
原题地址:http://oj.leetcode.com/problems/binary-tree-inorder-traversal/题意:二叉树的中序遍历。解题思路:这道题用递归解不难,所以应该考察的是非递归求解二叉树的中序遍历。我们使用一个栈来解决问题。比如一颗二叉树为{1,2,3,4,5,6,...
分类:编程语言   时间:2014-05-12 12:48:36    阅读次数:316
(转载)常用的Python库
http://forum.ubuntu.com.cn/viewtopic.php?f=63&t=249573&p=2640959 Tkinter ———— Python默认的图形界面接口。 Tkinter是一个和Tk接口的Python模块,Tkinter库提供了对Tk API的接口,它属于Tcl/T...
分类:编程语言   时间:2014-05-12 12:44:24    阅读次数:411
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!