升级Debian到wheezy后重新编译php。在编译libiconv时出错(话说俺居然没有找到这货的二进制包)./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)下面报make[2]: *** [progname.o...
分类:
其他好文 时间:
2014-09-28 15:50:22
阅读次数:
221
在Python中有两种注释,一种是普通注释,另一种是文档注释。普通注释是使用#开头1 print('output something') # here is comment而Python中多行注释也是使用#1 # comment 12 # comment 23 # comment 3而文档注释则是使...
分类:
编程语言 时间:
2014-09-28 03:05:00
阅读次数:
176
这一章,有点抽象,看着有点蛋疼!大笑
双下划线__future__或单下划线有特殊含义,在Python中,这些名字的集合称为魔法方法:最重要的是__init__和一些处理访问对象的方法,这些方法允许你创建自己的序列或者是映射.
------
准备工作:
将__metaclass__=type放在模块的最开始位置,以确保类时最新式的。考虑下面两个类
class NewStyle(object):
more_code_here
class OldStyle:
more_code_here
如果...
分类:
编程语言 时间:
2014-09-27 00:02:58
阅读次数:
460
DP?
题目链接:Click Here~
题目分析:
给出一个终点坐标,求出(0,0)开始的到(n,k)的最小权重和。
算法分析:
根据杨辉三角的性质可以知道,只要往两边走则得到的值会更小。因为,C(N,M) = C(N,N-M)。所以,我们尽量的斜向的往旁边走。但是,在斜向走k步后就已经到达边界了,此时只要顺着1一直往上走就可以了。所以,经过的最短路和为:C(n,...
分类:
其他好文 时间:
2014-09-26 19:50:48
阅读次数:
119
水平居中(2)方式一:text-align:center适用类型:行级元素方式二:margin:0 auto;适用类型:块级元素垂直居中(7)方式一:line-height适用:内联、块级场景:单行文本垂直居中html: Content here css:#child {line-height: 2...
分类:
其他好文 时间:
2014-09-25 20:08:47
阅读次数:
195
网页自适应手机、电脑屏幕的设置方法 Insert title here 第一个meta标签表示: 强制让文档与设备的宽度保持1:1; 文档最大的宽度比列是1.0(initial-scale初始刻度值和maximum-scale最大刻度值); user-scala...
分类:
Web程序 时间:
2014-09-25 19:22:07
阅读次数:
186
--%>Insert title here 欢迎你 编号 类型 商品内容 商品详情
分类:
Web程序 时间:
2014-09-24 20:54:17
阅读次数:
259
Start here: portal to the lectures(每一天都对应一个链接,包含videos 和materials)Each of the pages linked below represents one day of the school, and contains the li...
分类:
其他好文 时间:
2014-09-23 23:21:05
阅读次数:
290
How it works(目标只是开放资源给大家,没有考核)This is different from a standard MOOC. The materials presented here correspond to the advanced summer school organized ...
分类:
其他好文 时间:
2014-09-23 23:01:15
阅读次数:
196
This post will more focus on Technical part of credit check Functionality. You can check the functional part
of credir check functionality here.
TABLES
These are the main tables used for hold...
分类:
其他好文 时间:
2014-09-23 22:31:35
阅读次数:
387