python 编码问题
摘要:
__author__ = 'dell'# -*- coding: utf-8 -*-from lxml import etreeimport urllib2import timedef loadCategory(): res = {} f_txt = open('catetory.txt') while True: line = f_txt.readline() if not line: break line = line.strip().decode('gbk') tokens = line.sp... 阅读全文
posted @ 2013-11-13 15:19 雨渐渐 阅读(188) 评论(0) 推荐(0) 编辑