how to write to csv with a leading zero?

前端 未结 6 1319
北海茫月
北海茫月 2020-12-21 11:47

I wish to write to a CSV file some data. One of the column that I input the information is in the form of an integer with leading zeros, example: 0000000013.

For so

6条回答
  •  一向
    一向 (楼主)
    2020-12-21 11:54

    When one opens a CSV file in excel 2007, it opens the Text Import Wizard. In step 3, you can specify the column data format of the column to be 'Text'. Just select the appropriate column header in the 'Data preview' pane. Then select the 'Text' radio button in the 'Column data format' pane.

提交回复
热议问题