how to write to csv with a leading zero?

前端 未结 6 1317
北海茫月
北海茫月 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条回答
  •  Happy的楠姐
    2020-12-21 11:57

    Add a single quote, ', at the start of the line. This informs Excel to not treat the value as a number.

提交回复
热议问题