先上html代码<!DOCTYPEHTML>
<html>
<head>
<linkhref="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css"rel="stylesheet">
<linkrel="stylesheet"type="text/css"media="screen"
href="http://tarruda.gi..
分类:
Web程序 时间:
2014-11-25 18:52:43
阅读次数:
202
一般浏览器请求php是不会被缓存的,除非php直接显示的发送head 304if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { $browserCachedCopyTimestamp = strtotime(preg_replace('/;.*$/',.....
分类:
Web程序 时间:
2014-11-25 18:10:02
阅读次数:
357
cat命令的用途是连接文件或标准输入并打印。1.一次显示整个文件:catfilename2.从键盘创建一个文件:cat>filename只能创建新文件,不能编辑已有文件.3.将几个文件合并为一个文件:catfile1file2>file相比cat,还有一些其他的命令可以更灵活的查看文件内容。more...
分类:
系统相关 时间:
2014-11-25 16:12:18
阅读次数:
389
系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# ls...
分类:
系统相关 时间:
2014-11-25 12:32:48
阅读次数:
192
json数据格式如下:{
"value":[
23,
4,
24,
95,
27,
35,
93,
63,
75,
17,
13,
93,
54,
71,
61,
14,
13,
14,
29
]
}需要highcharts的dark-blue.js文件html文件格式如下:<!doctypehtml>
<htmllang="en">
<head>
<scripttype="text/javas..
分类:
Web程序 时间:
2014-11-25 02:03:22
阅读次数:
286
有一个两分的case出现段错误,真是没救了,估计是要写bfs的形式,可能栈溢出了#include #include #include #include #include #include using namespace std;int G[1001][1001] = {0};class Man {p...
分类:
其他好文 时间:
2014-11-25 00:05:49
阅读次数:
231
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>JavaScript自动关闭窗口</title><metahttp-equiv="content-..
分类:
编程语言 时间:
2014-11-24 22:45:36
阅读次数:
300
题解:裸的,没什么好说的。
树链剖分不会的先理解一下重链轻链,然后直接扒我代码理解就行了。
贴代码:
#include
#include
#include
#include
#define N 30100
#define inf 0x3f3f3f3f
using namespace std;
struct KSD
{
int u,v,next;
}e[N<<1];
int head...
分类:
其他好文 时间:
2014-11-24 22:42:11
阅读次数:
257
队列的基本操作包括入队enqueue和出队dequeue,队列有队头head和队尾tail指针。元素总是从队头出,从队尾入。采用数组实现队列时候,为了合理利用空间,可以采用循环实现队列空间的有效利用。
...
分类:
编程语言 时间:
2014-11-24 22:36:08
阅读次数:
325
主要给出两个版本,一个是通过urllib实现的,另一个是通过urllib2实现的,此为第二种,代码及实例如下:>>> import urllib2>>> from urllib2 import *>>> webUrl = "http://www.baidu.com">>> doc = urllib2...
分类:
编程语言 时间:
2014-11-24 18:51:00
阅读次数:
200