Create and open csv file

Creating a .csv file

(1) Create a new text document:

Open a new text document for editing.

Note: between English keywords and keywords separated by commas. A first reference field behavior, the behavior corresponding to the second value

(2) generating a csv file

The text document to rename the file extension changes, the ".txt" changed to ".csv"

II. Representation and write data

Each row is one-dimensional data (. 1) csv file, list type can be used in the python that the whole csv file is a two-dimensional data represented by the list type as elements of each row to form a two-dimensional list.

To csv format data to the list:

 

 

Guess you like

Origin www.cnblogs.com/cyt99/p/11904372.html
Recommended