zoukankan
html css js c++ java
python encode('utf8') problem
url='aa'
print type(url)
print url.encode('utf8')
以上是ok的
keyword="中国"
print keyword.encode("utf8")
就会报错了
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
查看全文
相关阅读:
python之函数嵌套与闭包
python之高阶函数
python之装饰器
python之内置函数
python之内置函数:map ,filter ,reduce总结
Python之reduce函数
install python2 python3 in same computer
git basic
git LF CRLF
2 thread, first to open chat window, second to make the phone
原文地址:https://www.cnblogs.com/lexus/p/1728345.html
最新文章
可以ping通,但是不能connect
Andriod ADB开启Activity、Service以及BroadCast(包括参数的传递)
Andriod ADB开启Activity、Service以及BroadCast(包括参数的传递)
直接插入排序
直接插入排序
选择排序
选择排序
工作日志
工作日志
#查看Linux的版本信息
热门文章
#查看Linux的版本信息
弓形矩阵
弓形矩阵
C++折半插入排序
C++折半插入排序
一个简单的网站首页制作
python之类的相关知识
python之random模块
Python之time模块
python之model模块和包的介绍
Copyright © 2011-2022 走看看