Home  >  Q&A  >  body text

python中csv文件,如何删除指定行指定列的某个数据?代码该如何写?求大神!!!

这是我的csv文件中的数据:

a b c d
e f g h
q w e r

假设现在想删除 g (第2行第3列),该如何写相应的代码呢?

大家讲道理大家讲道理2742 days ago949

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-18 09:08:57

    There is a csv module. You can read the usage of this library in detail. It should be there

    reply
    0
  • Cancelreply