CSV UTF-8写入器 - 与Python2.4兼容性问题

3

在这份手册的底部,http://docs.python.org/library/csv.html,我们有一个UnicodeWriter的示例。

但是我如何在Python 2.4中使用这个示例呢?

我得到了关于codecs.getincrementalencoder(encoding)()的异常。getincrementalencoder属性仅在2.5版中创建。谁能替换此属性呢?

谢谢!

1个回答

1

不确定是否有效,但尝试使用codecs.getencoder


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接