Writing with Python's built-in .csv module

前端 未结 3 1847
遥遥无期
遥遥无期 2021-02-03 14:20

[Please note that this is a different question from the already answered How to replace a column using Python’s built-in .csv writer module?]

I need to do a find and rep

3条回答
  •  迷失自我
    2021-02-03 14:28

    the problem is you're trying to write to the same file you're reading from. write to a different file and then rename it after deleting the original.

提交回复
热议问题