teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

修正

2020/12/13 09:19

投稿

退会済みユーザー
answer CHANGED
@@ -9,10 +9,13 @@
9
9
 
10
10
 
11
11
  ```
12
+ ret=[]
12
13
  for line in open("df.csv", mode="r", encoding="utf-8"):
13
14
  section = line.split(",", 1)
14
15
  if section[1] == 'columns\n':
15
16
  continue
16
- print(eval(section[1].strip("\"\n").strip("\")))
17
+ ret.append(eval(section[1].strip("\"\n").strip("\")))
18
+
17
-
19
+ for r in ret:
20
+ print(r)
18
21
  ```