摘要:
# !/usr/bin/python# -*- coding: UTF-8 -*-import reimport urllib2#charset 编码转换def mdcode( str, encoding='utf-8' ): if isinstance(str, unicode): return str.encode(encoding) for c in ('utf-8', 'gbk', 'gb2312','gb18030','utf-16'): try: if encoding == ' 阅读全文
posted @ 2012-09-17 15:51
wmjie
阅读(268)
评论(0)
推荐(0)
浙公网安备 33010602011771号