摘要:
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... 阅读全文
摘要:
# encoding: utf-8 ''' unicode字符串解码显示 ''' import sys reload(sys) sys.setdefaultencoding('utf-8') a = '\u5b64' aa = a.decode('unicode-escape') print aa, repr(aa) 阅读全文