[异常信息] Description Resource Path Location Type Access restriction: The method encode(BufferedImage, JPEGEncodeParam) from the type JPEGImageEncoder is ...
分类:
Web程序 时间:
2016-03-30 22:18:52
阅读次数:
396
字符串在Python内部的表示是unicode 编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 decode的作用是将其他编码的字符串转换成unicode编码,如str ...
分类:
编程语言 时间:
2016-03-30 06:54:42
阅读次数:
158
错误的程序及结果1: 解决1: guess = int(raw_input('请输入一个整数:'.decode('utf-8').encode('gbk'))) 解决2: guess = int(raw_input(unicode('请输入一个整数:','utf-8').encode('gbk'))... ...
分类:
其他好文 时间:
2016-03-28 18:14:31
阅读次数:
117
这几天课比较少,校园网上网要认证才能上网,每次必须输入学号密码,为了方便,写了一个自动登录以及如果在线,登录自服务系统强制下线的小工具。 强制下线思路:获取sessionID 》获取验证码图片 》AspriseOCRLib识别验证码 》MD5加密、url Encode 》登录自服务系统 》强制下线 ...
分类:
编程语言 时间:
2016-03-23 21:53:59
阅读次数:
226
encode是指将unicode字符编码成其他字符集的字符,如utf-8,ascii等; 而decode是指将其他字符编码,如utf-8转换成unicode编码。 python中可以用isinstance函数来判断某个字符串是否是unicode: s=u"中文" isinstance(s, unic
分类:
Web程序 时间:
2016-03-18 19:45:15
阅读次数:
153
1、json_decode对JSON格式的字符串进行编码 2、json_encode对变量进行 JSON 编码
分类:
Web程序 时间:
2016-03-16 12:24:52
阅读次数:
178
php获取POST数据的三种方法php 图片加水印源代码php+ajax+json的一个最简单实例php 汉字转拼音源码php遍历目录,生成目录下每个文件的md5值并写入到结果文件中php实现linux命令tail -fphp json_encode与json_decode使用实例php curl
分类:
Web程序 时间:
2016-03-14 18:19:18
阅读次数:
282
A quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadran
分类:
其他好文 时间:
2016-03-13 14:20:03
阅读次数:
374
Python3对文本(str)和二进制数据(bytes)作了更为清晰的区分。 文本默认是以Unicode编码(python2默认是ascii),由str类型表示,二进制数据则由bytes类型表示。 str是文本类型,即str类型 bytes()函数同str.encode(),即把str类型编码为by
分类:
编程语言 时间:
2016-03-12 21:18:47
阅读次数:
460
发布于2016-03-12 07:30发现现在几乎所有的网站都对url中的汉字和特殊的字符,进行了urlencode操作,也就是:http://hi.baidu.com/%BE%B2%D0%C4%C0%CF%C8%CB/creat/blog/这个样子,中间%形式的,肯定就是我的登录用户名称了吧。为什...
分类:
Web程序 时间:
2016-03-12 07:59:35
阅读次数:
659