context.Response.ContentType=encode;using(StreamWriterwriter=newStreamWriter(context.Response.OutputStream,UTF8)){writer.Write(str);}上面代码常会报错:Bytes to...
分类:
其他好文 时间:
2014-10-14 20:15:59
阅读次数:
193
系统环境是win7(64bit)+python3.4(64bit)+numpy1.82+vs20121.假设用sourceforge上编译好的32bit的exe安装,会提示‘python version ** required,which was not found in the registry’...
分类:
其他好文 时间:
2014-10-14 19:37:15
阅读次数:
268
打开Python的命令行交互窗口,并且在里面进行下面的输入:Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> pr...
分类:
编程语言 时间:
2014-10-14 16:02:58
阅读次数:
258
可以把“=”改成utf-8例如:try {paramMap.put("sessionid", java.net.URLEncoder.encode(accessToken, "UTF-8"));} catch (UnsupportedEncodingException e) {Log.d(TAG,e...
分类:
其他好文 时间:
2014-10-13 21:41:57
阅读次数:
148
一、方法1: 单文件模块直接把文件拷贝到 $python_dir/lib/python3.4/site-packages/二、方法2: 多文件模块,带setup.py下载模块包,进行解压,进入模块文件夹,执行:python setup.py install三、 方法3:easy_install 方式...
分类:
编程语言 时间:
2014-10-13 17:53:11
阅读次数:
231
Introduce how to ASN.1 encode OID (Object Identifier) with OpenSSL....
分类:
Web程序 时间:
2014-10-13 12:42:49
阅读次数:
290
django python3 实例下载 mysql数据库
分类:
数据库 时间:
2014-10-13 01:37:28
阅读次数:
329
sys模块 提供一些与python解释器关系紧密的变量和函数 1> argv 命令行参数 通过命令行可以向python传输参数 2> exit([arg]) 程序退出,可以返回给命令行一个错误参数或返回值 ## test.py ## imp...
分类:
编程语言 时间:
2014-10-12 21:45:58
阅读次数:
264
math模块 提供基础的数学函数, cos(3.14) = -0.999..(弧度制) acos(1) = 0.0 sqrt(9) = 3.0 degrees(3.14) = 179.9999..(弧度转角度) radians(180) = 3.1415926...
分类:
编程语言 时间:
2014-10-12 20:58:18
阅读次数:
279
1.通过源代码安装Python3.4,make install时报错"Ignoring ensurepip failure: pip 1.5.4 requires SSL/TLS"。缺少openssl,openssl-devel(Ubuntu下为libssl-dev),通过yum -y instal...
分类:
编程语言 时间:
2014-10-12 18:58:08
阅读次数:
567