[root@linux ~]# mysql -u root -p 123456Enter password: ERROR 1049 (42000): Unknown database '123456'[root@linux ~]# mysql -u root -p Enter password: W...
分类:
数据库 时间:
2014-06-28 10:55:09
阅读次数:
254
SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details在文件头...
分类:
编程语言 时间:
2014-06-24 22:13:37
阅读次数:
443
Find: In a sense, find is the opposite of the [] operator. Instead of taking an index and extracting the corresponding character, it takes a...
分类:
其他好文 时间:
2014-06-24 12:38:45
阅读次数:
173
A lot of computations involve processing a string one character at a time. Often they start at the beginning, select each character in turn, do someth...
分类:
其他好文 时间:
2014-06-23 07:19:02
阅读次数:
257
String slicesA segment of a string is called a slice. Selecting a slice is similar selecting a character: The operator [n:m] returns the par...
分类:
其他好文 时间:
2014-06-23 00:53:23
阅读次数:
253
OCR,光学字符识别 光学字符识别(OCR,Optical Character Recognition)是指对文本资料进行扫描,然后对图像文件进行分析处理,获取文字及版面信息的过程。OCR技术非常专业,一般多是印刷、打印行业的从业人员使用,可以快速的将纸质资料转换为电子资料。关于中文OCR,目前国....
分类:
其他好文 时间:
2014-06-23 00:13:31
阅读次数:
604
模式匹配的实现,'?'代表单一字符,'*'代表任意多的字符,写代码实现两个字符串是否匹配。
Implement wildcard pattern matching with support for '?' and '*'.、
'?' Matches any single character.
'*' Matches any sequence of characters (inclu...
分类:
其他好文 时间:
2014-06-22 16:40:44
阅读次数:
225
????用hibernate访问sybase时遇见的异常。
Could not obtain connection metadata : ASE is now using a multi-byte character set, and the TEXT character counts have not been re-calculated using this character set ...
分类:
系统相关 时间:
2014-06-22 06:19:49
阅读次数:
1188
在源文件的第一行或第二行添加:(必须在第一行或者第二行)
# -*- coding:utf-8 -*-
详细信息如下面解释:
Python对于decode&encode错误的默认处理方式为strict,也就是直接报错,而java使用replace的方式来处理了,因此java出现中文问题后会打印出很多"??"。此外,Python的默认的encoding是ASCII,而java的默认e...
分类:
编程语言 时间:
2014-06-21 23:25:51
阅读次数:
516
一、替代arp, ifconfig, route等命令 显示网卡和IP地址 root@openstack:~# ip link list 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd ...
分类:
其他好文 时间:
2014-06-21 15:54:27
阅读次数:
417