Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including th...
分类:
其他好文 时间:
2014-07-11 19:36:48
阅读次数:
202
IPv6 have colon character, for example FF:00::EEIf concatenate URL String, IPv6 URL will like:http://FF:00::EE:8888/a/b/cActually we want:http://[FF:0...
分类:
编程语言 时间:
2014-07-11 12:51:16
阅读次数:
291
http://blog.csdn.net/pickless/article/details/9191075Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7migh...
分类:
其他好文 时间:
2014-07-11 09:14:04
阅读次数:
222
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover t...
分类:
其他好文 时间:
2014-07-10 21:21:42
阅读次数:
255
今天同事pvuTraceback (most recent call last): File "F:\vmid.py", line 11, in vmiddle.connect((host, port))LookupError: unknown encoding: idna...
分类:
其他好文 时间:
2014-07-10 21:17:06
阅读次数:
365
错误例子:error: command 'cc' failed with exit status 1clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard err...
分类:
其他好文 时间:
2014-07-10 19:30:11
阅读次数:
3913
反转一个字符串
>>> S = 'abcdefghijklmnop'
>>> S[::-1]
'ponmlkjihgfedcba'
这种用法叫做three-limit slices
除此之外,还可以使用slice对象,例如
>>> 'spam'[slice(None, None, -1)]
>>>
unicode码与字符(single-character strings)之间...
分类:
编程语言 时间:
2014-07-09 13:08:50
阅读次数:
212
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2...
分类:
其他好文 时间:
2014-07-08 17:54:12
阅读次数:
297
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2014-07-08 16:57:40
阅读次数:
193
1、错误描述
com.mysql.jdbc.exception:jdbc4.MySQLSyntaxErrorException:Unknown column 'man' in 'field list'
2、错误原因
数据库表中的字段:sno sname sage ssex
插入数据时: sno sname sage ma...
分类:
数据库 时间:
2014-07-08 13:50:59
阅读次数:
242