CREATE TABLE emp_seq ( seq VARCHAR(8));
INSERT INTO emp_seq VALUES('0');
UPDATE emp_seq SET seq = LAST_INSERT_ID(seq+1);
SELECT LAST_INSERT_ID();
这东西完全跟oracle的sequence一致。即使在update之后,select之前有其它sess...
分类:
数据库 时间:
2015-06-16 13:07:21
阅读次数:
198
问题:UnicodeDecodeError: 'gb2312' codec can't decode bytes in position 2-3: illegal multibyte sequence
原因:python在做将普通字符串转换为unicode对象时,
例如:u_string = unicode(string , "gb2312"),如果你的字符串string中有诸如某些繁体字,例...
分类:
编程语言 时间:
2015-06-16 11:11:19
阅读次数:
545
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2015-06-16 10:36:34
阅读次数:
131
Sequence序列1.序列操作seq[ind1:ind2]seq[ind]seq1 + seq2seq1 * seq2seq * nobj in seqobj not in seq2.切片操作#反转操作seq[::-1]#隔一个取一个seq[::2]#取全部seq[:None]
分类:
编程语言 时间:
2015-06-15 14:28:35
阅读次数:
96
用maven编译,tomcat启动时报错:IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is com.sun.org.apache.xerces...
分类:
其他好文 时间:
2015-06-15 00:02:40
阅读次数:
152
题目:Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstarttoend, such that:Only one letter can be chan...
分类:
编程语言 时间:
2015-06-14 15:01:43
阅读次数:
216
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 is read off as ...
分类:
其他好文 时间:
2015-06-14 12:32:24
阅读次数:
139
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1250Hat's FibonacciDescriptionA Fibonacci sequence is calculated by adding the previous two members the ...
分类:
其他好文 时间:
2015-06-14 12:09:01
阅读次数:
102
Word BreakGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words....
分类:
编程语言 时间:
2015-06-14 08:14:53
阅读次数:
134
上一节讲了一个loading的动画界面,其实没有loading资源。
怎么样loading资源,如何预加载资源呢。直接上代码 // 创建一个一直重复的动画
loading->runAction(RepeatForever::create(Sequence::create(fadeIn, fadeIn->reverse() ,NULL))); // loading resources...
分类:
其他好文 时间:
2015-06-14 01:54:03
阅读次数:
285