@@ -297,7 +297,7 @@ with open('baseball_players.csv', 'rt') as f:
* * *
**address.csv**
**`address.csv`**
```py
Name,Age,Address
...
...
@@ -322,7 +322,7 @@ with open('addresses.csv', 'rt') as f:
```
**Expected Output:**
**预期输出**:
```py
['Name','Age','Address']
...
...
@@ -345,7 +345,7 @@ with open('housing.csv', 'rt') as f:
```
**Expected Output:**
**预期输出**:
```py
['Name','Age','Address']
...
...
@@ -359,7 +359,7 @@ with open('housing.csv', 'rt') as f:
* * *
**comments.csv**
**`comments.csv`**
```py
Id,User,Comment
...
...
@@ -385,7 +385,7 @@ with open('employees.csv', 'rt') as f:
```
**Expected Output:**
**预期输出**:
```py
['Id', 'User', 'Comment']
...
...
@@ -409,7 +409,7 @@ with open('employees.csv', 'rt') as f:
```
**Expected Output:**
**预期输出**:
```py
['Id', 'User', 'Comment']
...
...
@@ -424,7 +424,7 @@ with open('employees.csv', 'rt') as f:
* * *
**dialogs.csv**
**`dialogs.csv`**
```py
Id, Actor, Dialogue
...
...
@@ -449,7 +449,7 @@ for line in csv_reader:
```
**Expected Output:**
**预期输出**:
```py
['Id', 'Actor', 'Dialogue']
...
...
@@ -473,7 +473,7 @@ with open('employees.csv', 'rt') as f:
```
**Expected Output:**
**预期输出**:
```py
['Id', 'Actor', 'Dialogue']
...
...
@@ -494,13 +494,13 @@ with open('employees.csv', 'rt') as f:
| 参数 | 描述 |
| --- | --- |
| `fileobj` | (required) It refers to the file object |
| `dialect` | (optional) Dialect refers to the different ways of formatting the CSV document. By default, the `csv` module uses the same format as Microsoft Excel. We will discuss dialect in detail later in this post. |