回答編集履歴
1
方法追加
test
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
+
```
|
2
|
+
|
3
|
+
data = []
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
with open('A.csv') as lines:
|
8
|
+
|
9
|
+
for line in lines:
|
10
|
+
|
11
|
+
data.append(line.strip().split(','))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
print(data)
|
16
|
+
|
17
|
+
for a in data:
|
18
|
+
|
19
|
+
print(a[0], "だぜ")
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
とか
|
26
|
+
|
27
|
+
|
28
|
+
|
1
29
|
```
|
2
30
|
|
3
31
|
with open('A.csv') as f:
|
@@ -10,6 +38,10 @@
|
|
10
38
|
|
11
39
|
for a in data:
|
12
40
|
|
13
|
-
print(a
|
41
|
+
print(a, "だぜ")
|
14
42
|
|
15
43
|
```
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
とか。
|