writing fixed width, space delimited CSV output in Python

后端 未结 3 1742
栀梦
栀梦 2021-01-18 05:43

I would like to write a fixed width, space delimited and minimally quoted CSV file using Python\'s csv writer. An example of the output:

item1           item         


        
3条回答
  •  长情又很酷
    2021-01-18 06:24

    This active state recipe shows how to output table-ized data in python: http://code.activestate.com/recipes/267662-table-indentation/

    You might be able to glean enough from that example to do what you want.

提交回复
热议问题