What exactly are the csv module's Dialect settings for excel-tab?
The csv module implements classes to read and write tabular data in CSV
format. It allows programmers to say,"write this data in the format
preferred by Excel," or"read data from this file which was generated
by Excel," without knowing the precise details of the CSV format used
by Excel.
如果我想知道怎么办??
除此之外,我想知道哪些属性和设置可以创建方言
'。
直接转到EDOCX1的源(0),
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | class excel(Dialect): """Describe the usual properties of Excel-generated CSV files.""" delimiter = ',' quotechar = '"' doublequote = True skipinitialspace = False lineterminator = ' ' quoting = QUOTE_MINIMAL register_dialect("excel", excel) class excel_tab(excel): """Describe the usual properties of Excel-generated TAB-delimited files.""" delimiter = '\t' register_dialect("excel-tab", excel_tab) |