摘要: 字符串 python有两种字符串 byteString = "hello world! (in my default locale)" unicodeString = u"hello Unicode world!" 相互转换 1 s = "hello normal string" 2 u = unicode( s, "utf-8" ) 3 backToBytes = u.encode( "ut...阅读全文
posted @ 2010-05-14 10:03 观无明 阅读(4561) 评论(0) 编辑