import codecs >>> >>> a='a' >>> a.encode('UTF-16') '\xff\xfea\x00' >>> 如何让他自动不带FFFE啊,有什么参数吗? -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070802/7e51c1e0/attachment.htm