python

学习过程中总结的经验

博客园 首页 新随笔 联系 订阅 管理

2012年1月6日 #

摘要: >>> print 'xn--'+'教育部'.decode('gbk').encode('punycode')+'.cn'xn--wcvs22dzol.cn>>> ___________________________________________>>>import urllib>>>s="%D6%D0%B9%FA">>>urllib.unquote(s)'\xd6\xd0\xb9\xfa' 阅读全文
posted @ 2012-01-06 15:43 や尐莊徍左赱 阅读(530) 评论(0) 推荐(0) 编辑