未添加着色功能,这个比较麻烦,比如变量是什么色,函数是什么色,需要使用正则。使用blog里自带的python代码着色,更改如下:print(‘<preclass="brush:python;toolbar:false">‘+all+‘</pre>‘)效果及代码如下:#-*-coding:utf-8-*-
codedic={‘"‘:‘"‘,"‘":..
分类:
编程语言 时间:
2014-08-01 13:55:12
收藏:
0 评论:
0 赞:
0 阅读:
346
1、什么是包装#-*-coding:utf-8-*-
"""
包装类,就是给被包装的类加个壳;被包装内实现壳的内部,而包装内提供壳的外部(接口),有点类似于继承关系,
不过也不完全时,因为通过继承也可以实现包装效果,不使用继承同样可以实现包装效果。下面通过一个例子来展示
包装的概念
"..
分类:
编程语言 时间:
2014-08-01 13:54:52
收藏:
0 评论:
0 赞:
0 阅读:
418
Installationsteps->useraddmysql->cd/tmp;tar-xzfmysql-VERSION-OS.tar.gz-C/usr/local->cd/usr/local;mvmysql-VERSION-OSmysql->chown-Rroot.rootmysql->mkdir-p/data/db/mysql/3306->chownmysql.mysql/data/db/mysql/3306->cd/usr/local/mysql->scr..
分类:
数据库技术 时间:
2014-08-01 13:54:42
收藏:
0 评论:
0 赞:
0 阅读:
504
Installationsteps->useraddmysql->cd/tmp;tar-xzfmysql-VERSION.tar.gz->chown-Rroot.rootmysql-VERSION->mkdirmybuild->cdmybuild->cmake-DBUILD_CONFIG=mysql_release\-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\../mysql_VERSION->make-j&&mak..
分类:
数据库技术 时间:
2014-08-01 13:54:12
收藏:
0 评论:
0 赞:
0 阅读:
384
有多少人为了眼前放弃自己的明天有多少人为了明天又在扼杀今天有多少人为了今天寄生给了欺骗又有多少人欺骗只为换取一丝尊严有多少人为了尊严却活在别人胯下有多少人活在胯下只为养活一家有多少人为了一家老小四海为家有多少人漂泊日夜思念朋友和爸妈有多少人指手画脚的给别人..
分类:
其他 时间:
2014-08-01 13:53:52
收藏:
0 评论:
0 赞:
0 阅读:
290
Windows系统下配置Git...
分类:
Windows开发 时间:
2014-08-01 13:53:01
收藏:
0 评论:
0 赞:
0 阅读:
403
一篇关于IP地址结构和子网络划分的好文...
分类:
其他 时间:
2014-08-01 13:52:51
收藏:
0 评论:
0 赞:
0 阅读:
362
STL实现优先队列
使用方法:
头文件:
#include
声明方式:
priority_queueq;
结构体的声明方式:
struct node
{
int x, y;
friend bool operator b.x; //结构体中,x小的优先级高
}
};...
分类:
其他 时间:
2014-08-01 13:52:42
收藏:
0 评论:
0 赞:
0 阅读:
324
Channel Allocation
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 12096
Accepted: 6191
Description
When a radio station is broadcasting over a very large ...
分类:
其他 时间:
2014-08-01 13:52:32
收藏:
0 评论:
0 赞:
0 阅读:
409
谨以此系列文章祭奠逝去的大学生活!...
分类:
其他 时间:
2014-08-01 13:52:21
收藏:
0 评论:
0 赞:
0 阅读:
534
用缓冲技术提高JSP应用的性能和稳定性之OSchche应用(3)...
分类:
Web开发 时间:
2014-08-01 13:52:11
收藏:
0 评论:
0 赞:
0 阅读:
422
题目大意:
对平面上的点进行操作。
add x y 在 (x,y )上加一个点。
remove x y 移除 (x,y)上的点。
find x y 求出在(x,y)右上角离他最近的点,优先级是靠左,靠下。
思路分析:
find 操作 比较麻烦。
要保证x大的同时还要确保x最小,而且该x上还要有点。
这样要找大的时候要小的,就是在线段树上选择性的进入左子树还是右子树。
所以...
分类:
其他 时间:
2014-08-01 13:51:52
收藏:
0 评论:
0 赞:
0 阅读:
326
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2414
Problem C
SAM I AM
Input: Standard Input
Output: Standard Output
The world is in gre...
分类:
其他 时间:
2014-08-01 13:51:41
收藏:
0 评论:
0 赞:
0 阅读:
329
Problem Description
There is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although the king used to be wise and beloved by his peop...
分类:
其他 时间:
2014-08-01 13:51:31
收藏:
0 评论:
0 赞:
0 阅读:
389
#include
#include
typedef struct QNode
{ //构造结点类型
int data;
struct QNode *next;
}*QueuePtr;
typedef struct
{ QueuePtr front;
QueuePtr rear;
}LinkQueue;
void CreateQueue(LinkQueue &Q);//创建队列
void E...
分类:
其他 时间:
2014-08-01 13:51:24
收藏:
0 评论:
0 赞:
0 阅读:
403
#include
#include
#include
typedef struct
{ char *ch;
int length;
}HString;
void StrAssign(HString &T,char chars[]);
int get_next(HString T,int next[]);
void main()
{ HString T;
char chars[80];
in...
分类:
其他 时间:
2014-08-01 13:51:23
收藏:
0 评论:
0 赞:
0 阅读:
313
分布式架构是中心化的设计,就是一个主控机连接多个处理节点,因此保证主控机高可用性十分关键.分布式锁是解决该问题的较好方案,多主控机抢一把锁.Zookeeper就是一套分布式锁管理系统,用于高可靠的维护元数据....
分类:
其他 时间:
2014-08-01 13:50:51
收藏:
0 评论:
0 赞:
0 阅读:
394
1.3 HSB模式及其与RGB间的转换
从上两节的讨论可知,RGB模式是一个数理性质较强的概念,对于大部分色彩来说,您很难通过RGB的数值得知它代表什么颜色,以及它的明暗和鲜艳程度。
《忆江南》的景观之所以能直接用最简单的三原色来渲染,完全是因为他所描绘的江南美景足够的清澈纯净,而且颜色的种类较少。
实际上,大多数情况下,颜色的种类远不止红绿蓝...
分类:
其他 时间:
2014-08-01 13:50:41
收藏:
0 评论:
0 赞:
0 阅读:
354
#include
#include
#define LENGTH 100 //初始分配栈的长度
#define ADD_LEN 10 //栈长增量
typedef struct //定义字符栈
{ int *base;
int *top;
int stacksize;
}SqStack;
void InitStack(SqStack &S); //初始化一...
分类:
其他 时间:
2014-08-01 13:50:31
收藏:
0 评论:
0 赞:
0 阅读:
377
java学习笔记(五)枚举...
分类:
编程语言 时间:
2014-08-01 13:50:21
收藏:
0 评论:
0 赞:
0 阅读:
349