码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
ol、ul的list-style不显示问题
今天在项目中遇到一个问题,我使用**ol**,并且在css里设置list-style不为none,但是始终显示不了序号,当然最初我认为是css样式层叠被覆盖,但是连最终神器都用上了:```cssol { list-style-type: decimal!important; }```问题却还是没有解...
分类:其他好文   时间:2014-07-11 12:52:33    阅读次数:764
redis key和value
exists keydel key1 key2Redis 的vauleredis 提供五种数据类型:string,hash,list,set 及sorted set。string 是最基本的类型,而且string 类型是二进制安全的。意思是redis 的string 可以包含任何数据。比如jpg 图...
分类:其他好文   时间:2014-07-11 12:38:31    阅读次数:239
python 删除list中重复元素
list = [1,1,3,4,6,3,7] 1.for s in list: if list.count(s) >1: list.remove(s) 2.list2=[]for s in list: if s not in list2: list2.ap...
分类:编程语言   时间:2014-07-11 11:04:45    阅读次数:203
shell脚本解析5----循环语句
一、for循环for var in [ list ]do #code blockdone$var是循环控制变量,[list]是var需要遍历的一个集合,do/done对包含了循环体。如果do和for被写在同一行,必须在do前面加上“;”,如:for $var in [list]; do例如:#!/....
分类:其他好文   时间:2014-07-11 10:39:39    阅读次数:178
redis的图形界面管理工具:phpredisadmin
大部分人都知道redis是一款用在缓存服务器上的软件,它与memcache类似,都可以存储海量的数据,用在大访问量的web网站、聊天记录存放等方面,但是又与memcache不同:1、缓存数据可以持久化,没有缓存时间限制2、支持更多的数据类型:string、list 、set 、sorted set ...
分类:Web程序   时间:2014-07-11 10:33:37    阅读次数:208
哈夫曼树
主要思想:(1)对List集合中所有节点进行排序。(2)找出List集合中权值最小的两个节点。(3)以权值最小的两个节点作为子节点创建新节点。(4)从List集合中删除权值最小的两个节点,将新节点添加到List集合中。创建哈夫曼树结构类: 1 public static class Node imp...
分类:其他好文   时间:2014-07-11 10:24:19    阅读次数:144
A list is a sequence
Like a string, a list is a sequence of values. In a string, the values are characters; in a list, they can be any type. The values in list are called ...
分类:其他好文   时间:2014-07-11 09:01:06    阅读次数:242
Lists are mutable
The syntax for accessing the elements of a list is the same as for accessing the characters of a string – the bracket operator ([ ]). The expression i...
分类:其他好文   时间:2014-07-11 08:55:10    阅读次数:174
C++模板实现单向链表
模板实现头文件:#ifndef SUN_LINKLIST_H#define SUN_LINKLIST_H#include using namespace std ;//#include "List.h"// T : operator= , operator!= , operator== , cop....
分类:编程语言   时间:2014-07-10 16:23:14    阅读次数:220
利用session完成用户登陆
1 package cn.itcast.cookie; 2 3 import java.io.IOException; 4 import java.io.PrintWriter; 5 import java.util.List; 6 7 import javax.servlet.Servlet...
分类:其他好文   时间:2014-07-10 16:19:58    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!