摘要:
import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) PyDev console: starting. C:\Python27\python.exe 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] imp... 阅读全文
posted @ 2015-12-11 21:13
aprial
阅读(3091)
评论(0)
推荐(0)
摘要:
# encoding: utf-8 ''' unicode字符串解码显示 ''' import sys reload(sys) sys.setdefaultencoding('utf-8') a = '\u5b64' aa = a.decode('unicode-escape') print aa, repr(aa) 阅读全文
posted @ 2015-12-11 20:24
aprial
阅读(355)
评论(0)
推荐(0)