category
New post
科学
解决:java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
Post on 2017-03-19
By zhilun
342
0
缺乏相关的jar文件,在https://www.bouncycastle.org/latest_releases.html下载,根据自己的java jdk版本选择下载的文件。 比如...
科学
解决:java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Post on 2017-03-19
By zhilun
45
0
原因是工程中缺乏commons-logging-1.2.jar文件,下载后放入工程的libs/commons-logging-1.2.jar下,导入后即可。
科学
解决Python字符串出现UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe9′ in position 8: ordinal not in range(128)
Post on 2017-03-15
By zhilun
59
0
产生错误的原因为ascii和unicode字符编码范围不同造成的,此时需要进行安全字符串编码 def safe_str(obj): """ return the byte stri...
科学
解决pyPdf出现Exception: file has not been decrypted错误
Post on 2017-03-15
By zhilun
184
0
解决方法如下: input = pyPdf.PdfFileReader(u"D:\\test.pdf") if input.isEncrypted: input.decrypt('...
科学
解决Python出现TypeError: coercing to Unicode: need string or buffer, int found错误
Post on 2017-03-15
By zhilun
263
0
造成错误产生的原因为拼接字符串时出现了int类型的数据,原数据为: sql = u"update all_link set post_page=" + pdf_meta['page...
科学
Windows下安装Python MySQLdb模块(不会出现安装错误)
Post on 2017-03-15
By zhilun
72
0
通常去Python网站下载MySQLdb包安装时会出现这样的情况: 1.找不到python 2.7的安装路径 2.gcc: error: /Zl: No such file or ...
科学
Python字典变量增加新元素
Post on 2017-03-15
By zhilun
19
0
>>>dict1 = {} >>> dict1['a']=1 #第一种 >>> dict1 {'a': 1} #第二种:set...
科学
Java获取文件大小实现
Post on 2017-03-15
By zhilun
47
0
使用Java获取文件大小时,必须使用long类型来保存大小,如果一个返回文件大小的方法返回的不是long类型,如int,则会存在范围溢出的问题,尤其是对大文件。 Java获取文件大...
自然语言
词形还原(lemmatization)与词干提取(stemming)的区别
Post on 2017-03-07
By zhilun
157
0
词形还原和词干提取均是自然语言处理过程中的预处理阶段,它们通常在英文语系中使用,而在中文中一般不用这两种处理。 使用词形还原和词干提取的目的通常是为了减少词语因为时态,单复数和变形...
科学
Windows系统CMD禁用启用网卡
Post on 2017-03-05
By zhilun
113
0
使用命令行启用和禁用网卡需要使用管理员方式运行CMD. 如果网卡名词为:Wi-Fi,使用方法如下: 注:可以在控制面板\网络和 Internet\网络连接中查看自己网卡的名词 1....
首页
1
2
3
4
尾页
X