- 授权协议: Apache
- 开发语言: C/C++
- 操作系统: Linux
- 软件首页: http://code.google.com/p/libra-server/
- 软件文档: http://code.google.com/p/libra-server/
软件介绍
A keyword match server
为什么需要关键字匹配服务器?你可能想用正则去匹配,不过细想一下,如果有10万个关键字,那不是要用正则匹配10万次。
而是用关键字匹配服务器只需要匹配一次即可,速度非常快,速度只跟你要匹配的原文长度有关。
此外,使用此服务器还可以过滤敏感词之类的用途。
#安装方法#
1.安装libevent(http://monkey.org/~provos/libevent/)
2.安装libdatrie(http://linux.thai.net/~thep/datrie/datrie.html)
3.make
PHP接口:
存储
输出:
<?php
include('matcher.php');
$matcher = new Matcher('192.168.10.20'); $matcher->set('hello'); $matcher->set('world'); $matcher->set('kitty'); ?>
匹配
<?php
include('matcher.php'); $matcher = new Matcher('192.168.10.20'); $matchs = $matcher->gets('hello world, hello kitty') if (!empty($matchs)) { print_r($matchs); } ?>
Array ( [hello] => hello
[world] => world
[kitty] => kitty )
Python语言程序设计
(美)Y. Daniel Liang / 机械工业出版社 / 2013-3 / 79.00元
本书保持了Liang博士系列丛书中一贯的、标志性的教与学的哲学:以实例教,由实践学。书中采用了他所提出的已经经过实践检验的“基础先行”的方法,即在定义类之前,首先使用清晰简明的语言介绍基本程序设计概念,如选择语句、循环和函数;在介绍面向对象程序设计和GUI编程之前,首先介绍基本逻辑和程序设计概念。书中除了给出一些以游戏和数学为主的典型实例外,还在每章的开始使用简单的图形给出一两个例子,以激发学生的......一起来看看 《Python语言程序设计》 这本书的介绍吧!
