Python - csv file is empty after using csv writer

后端 未结 5 1026
终归单人心
终归单人心 2021-01-12 22:19

Python newbie here. I was trying to troubleshoot an issue with writing a csv file in a larger program and decided to go back to basics to try to find the problem.

I

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-12 22:50

    The code you posted works perfectly for me.

    Are you sure that the directory in which you run that script is actually the directory you're checking? (Do you delete "eggs.gsv" every time before you try it?)

提交回复
热议问题