ValueError: I/O operation on closed file 的解决办法 Emma歌小白 2021-06-24 842 阅读1分钟 在用python写文件时候出现这个问题: 最后查询发现是f.close()的缩进出现问题,和for同一级别即可