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

回答編集履歴

1

バグ修正

2023/03/20 01:31

投稿

TakaiY
TakaiY

スコア14534

answer CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  ```python
4
4
  for line in f:
5
- cols = row.strip().split(',')
5
+ cols = line.strip().split(',')
6
6
  outfile.write(f'{cols[0]},{cols[2]},\n')
7
7
  ```