Datetime:2014-05-0717:04:53PYTHON
号称胶水语言。一,表,元组,字典区别:表:可以修改a=[1,3,4,5]a[2]=5print a#[1,3,5,5]View
Code元组:不能被修改a=(1,2,3)a=(a[0],2,a[1])print a#1,2,2#数组...
分类:
其他好文 时间:
2014-05-08 12:27:37
阅读次数:
244
#encoding:utf-8import math#向上取整print
"math.ceil---"print "math.ceil(2.3) => ", math.ceil(2.3)print "math.ceil(2.6)
=> ", math.ceil(2.6)#向下取整print "\nm...
分类:
编程语言 时间:
2014-05-08 12:11:13
阅读次数:
467
案例4视图viwer拓扑图:1.查看帮助[root@centos~]#vim/usr/share/doc/bind-9.8.2/sample/etc/named.conf[root@host2~]#cd/var/named/chroot/etc2.[root@centosetc]#vimnamed.conf添加视图:36view"lan-view"37{38zone"."IN{39typehint;40file"named.ca";41};42zone"ab.com"{43t..
分类:
系统相关 时间:
2014-05-07 15:33:16
阅读次数:
618
Spring整合JUnit框架进行单元测试代码使用详解,代码下载地址:http://www.zuidaima.com/share/1775457756285952.htm...
分类:
编程语言 时间:
2014-05-07 12:32:30
阅读次数:
374
这篇对应的是习题39 字典, 可爱的字典
#encoding:utf-8
#列表与字典的区别
#列表
thing = ['name',1,'age','AD','sex']
print thing[1]
#print thing['name'] #会报错,列表只能通过整数去访问:TypeError: list indices must be integers, not str
stuff...
分类:
编程语言 时间:
2014-05-07 06:00:20
阅读次数:
365
一直想学习IOS手机开发,今天开始涉入该领域。好吧,先从基础开始——搭建开发环境。
系统: Ubuntu 12.04 LTS 64 位
环境搭建步骤:
1、安装编译器
sudo apt-get install gnustep*
2、配置环境变量
# set GNUstep
GNUSTEP_ROOT=/usr/share/GNUstep/Makefiles
export GNUSTE...
分类:
其他好文 时间:
2014-05-07 03:41:47
阅读次数:
356
t = '''www.jeapedu.com
www.chinagame.me
www.quanzhan.org
'''
print t.splitlines()
Python的split方法函数可以分割字符串成列表,默认是以空格作为分隔符sep来分割字符串。
In [1]: s = "www jeapedu com"
In [2]: p...
分类:
编程语言 时间:
2014-05-07 02:37:08
阅读次数:
478
题目链接题意 :
一篇文章有n个单词,如果每行打印k个单词,那这行的花费是,问你怎么安排能够得到最小花费,输出最小花费。思路 :
一开始想的简单了以为是背包,后来才知道是斜率优化DP,然后看了网上的资料,看得还挺懂的,不过我觉得如果以后真遇到斜率DP,要推起来肯定不简单。。。。。网上资料1网上资料2...
分类:
其他好文 时间:
2014-05-07 00:35:18
阅读次数:
424
eclipse/MyEclipse
日期格式、注释日期格式、时区问题在eclipse/MyEclipse中,如果你的注释或是运行System.out.print(new
java.util.Date());的时候,发现时间和系统的时间差8个小时。那么就可以说明,你的时区和当前时区不对应。我们中国用的...
分类:
系统相关 时间:
2014-05-06 23:45:28
阅读次数:
494
#find/usr-namepxelinux.0#find/usr/share-namepxe*#find/usr-namepxelinux.?#tail/etc/passwd#find/-userapache#find/-usernamed#df-i#find/-inum1016273--execrm-fr{}\;#find/-size+204800-execrm-fr{}\;#find/etc-nameinit*-okls-l{}\;#find/-size204800#find/-size+204800(..
分类:
其他好文 时间:
2014-05-06 16:44:34
阅读次数:
258