- 博客(2)
- 收藏
- 关注
转载 python3.0 对python2.x 升级后重大语法变动
<br />转自:http://hi.baidu.com/jxq61/blog/item/ad39b7d8a8705dd0b7fd48a2.html<br />python 2.4 与 python 3.0 的比较<br />一、 print 从语句变为函数<br /> 原: print 1, 2+3<br />改为: print ( 1, 2+3 )<br />二、range 与 xrange<br />原 : range( 0, 4 ) 结果 是 列表 [0,1,2,3
2010-06-28 18:54:00 1098
原创 Boyer-Moore算法的C++实现
<br />Boyer-Moore字符串匹配算法是一个在实践当中用得比较多的字符串查找算法,作者实现了一个C++版本的算法,供以后参考。<br />#include <iostream> #include <algorithm> #include <string> #include <vector> #ifndef ssize_t typedef off_t ssize_t; #endif using namespace std; void compute_last_occurrence(c
2010-06-16 15:36:00 1809 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人