Python - Converting CSV to Objects - Code Design

前端 未结 2 1189
清酒与你
清酒与你 2021-02-09 19:35

I have a small script we\'re using to read in a CSV file containing employees, and perform some basic manipulations on that data.

We read in the data (import_gd_dump), a

2条回答
  •  旧时难觅i
    2021-02-09 19:47

    you should close your files after reading them I suggest moving all compiled re's tot he top level (otherwise you compile them every call) if self.telephoneNumber is None or self.telephoneNumber == '': cen be easily rewrittent as if not self.telephoneNumber

提交回复
热议问题