2014年10月9日

'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)——引用

摘要: 在Django视图函数中经常出现类似于'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)的错误。 在解决错误之前,首先要了解unicode和utf-8的区别。 unicode指的是万国码,是一种“... 阅读全文

posted @ 2014-10-09 16:34 shellnalu 阅读(642) 评论(0) 推荐(0) 编辑

python 反向查找

摘要: python 字符串反向查找大部分在正向查找前面加入reg:str.rfind('str')str.rsplit(',') 阅读全文

posted @ 2014-10-09 14:55 shellnalu 阅读(6862) 评论(0) 推荐(1) 编辑

导航