码迷,mamicode.com
首页 >  
搜索关键字:python3 encode typeerr    ( 15487个结果
linux python idle安装
1、首先看一下当前系统中 python3的版本python3 -VPython 3.2.32、安装相应的idlesudo apt-get install idle-python3.2启动后
分类:编程语言   时间:2014-12-29 22:57:07    阅读次数:244
使用URLEncoder、URLDecoder进行URL参数的转码与解码
url后参数的转码与解码import java.net.URLDecoder;import java.net.URLEncoder;String strTest = "?=abc?中%1&2";strTest = URLEncoder.encode(strTest, "UTF-8");System....
分类:Web程序   时间:2014-12-29 19:51:45    阅读次数:4409
[python]如何使用virtualenvwrapper切换 不同版本的python?
早就听说virtualenv是python必备神器之一,但一直觉得mac自带的python2.7就很好用了,好像没有必要用virtualenv,不过今天在github上看到一个新的python开源项目,需要用python3,于是必须上virtualenv了。 1. 安装virtualenv, virtualenvwrapper sudo pip install virtualenv ...
分类:移动开发   时间:2014-12-29 15:24:45    阅读次数:219
Alphacode
题目描述 Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's just use a very simple code: We'll assign 'A' the code word 1, 'B' wil...
分类:其他好文   时间:2014-12-29 15:24:42    阅读次数:134
Javascript Base64 Encode & Decode
html代码: 1 2 3 4 Page Title 5 13 14 15 16 Javascript Base64 Encode & Decodeveinyf@gmail.com2014-12-27 17:4417 18 Base6419 Co...
分类:编程语言   时间:2014-12-27 18:52:11    阅读次数:269
新浪sina.cn邮箱注册python版
研究了一下新浪邮箱的注册流程,顺手写了个注册机,分享供学习用,请勿用于商业用途。 代码托管地址:https://bitbucket.org/doggod999/ooobj 运行效果图: 运行环境: python3 requests-2.2.1 beautifulsoup-4.1.3 ########...
分类:编程语言   时间:2014-12-26 22:47:40    阅读次数:348
Python3.4使用MySql
如何在Django1.6结合Python3.4版本中使用MySqldjango默认的mysql连接是Mysqldb,悲催的是此版本只支持到python2.7,oracle官方的mysql-connector也只有python2.7版本,你妹幸亏还有pymysql其他配置都一样,注意需要在app的__...
分类:数据库   时间:2014-12-26 16:28:39    阅读次数:176
Python 文件I/O
打开文件并写内容:# _*_ coding: gbk _*_# 打开一个文件fo = open("foo.txt", "wb")fo.write (("Python isia great language.\nYeah its great!!\n").encode()) #注意上面的内容添加enco...
分类:编程语言   时间:2014-12-26 16:02:52    阅读次数:110
字符串编码问题
python编码问题字符串在Python内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。decode的作用是将其他编码的字符串转换成unicod...
分类:其他好文   时间:2014-12-26 12:45:38    阅读次数:154
[leetcode] Decode Ways
题目:(DP, String)A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encode...
分类:其他好文   时间:2014-12-26 06:13:51    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!