回答編集履歴

1

コード修正

2018/03/14 06:23

投稿

8524ba23
8524ba23

スコア38352

test CHANGED
@@ -1,4 +1,4 @@
1
- `','.join(list(map(str,nsx)))`にて、`nsx`の各要素毎に`str`のリストに変換し、それを`,`で連結します。
1
+ `','.join(list(map(str,nsx)))`にて、`nsx`の各要素毎に`str`に変換し、それを`,`で連結します。
2
2
 
3
3
  実際のファイル出力時には最後に改行`\n`を付加します。
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # 略
8
8
 
9
- file_object.write(','.join(list(map(str,nsx))) + '\n')
9
+ file_object.write(','.join(map(str,nsx)) + '\n')
10
10
 
11
11
  file_object.close()
12
12