Python中使用不同编码读写txt文件详解 复制代码 代码如下: import os import codecs filenames=os listdir(os getcwd()) out=file( "name txt ", "w python编程 2022-04-05 201 点赞 3 评论 304 浏览