How to set size of column of csv file?

后端 未结 3 1109
长情又很酷
长情又很酷 2021-01-11 13:53

I want to set the size of each column in csv file, I want to set the size of column against the field, I don\'t know where I can do the code of to set the size? Can anyone h

3条回答
  •  轮回少年
    2021-01-11 14:24

    You can't... a CSV file has no formatting of any kind, including column size.

    If you want to control column widths, then you need to write the data to a format that does support columns widths, such as BIFF (.xls) or OfficeOpenXML (.xlsx) or OASIS Open Document Format (.ods) or Gnumeric or other spreadsheet.

提交回复
热议问题