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

質問編集履歴

2

修正

2021/04/13 01:02

投稿

pepe1122
pepe1122

スコア14

title CHANGED
File without changes
body CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  csv_file = io.BytesIO()
22
22
  blob.download_to_file(csv_file)
23
- csv_files = csv_file.getvalue()
23
+ csv_files = csv_file.getvalue().decode()
24
24
 
25
25
  for csv_files in csv_files:
26
26
 
@@ -36,8 +36,8 @@
36
36
 
37
37
  この様に数字が入っています。
38
38
  ```
39
- csv_filesで出力するとこの様な文字の羅列が並び
39
+ csv_filesで出力すると
40
- b'6805760\n11687055'
40
+ 1文字ずつループが回ってしまし
41
41
 
42
42
  io.StringIO()
43
43
  を使うと

1

タグ付

2021/04/13 01:01

投稿

pepe1122
pepe1122

スコア14

title CHANGED
File without changes
body CHANGED
@@ -23,6 +23,7 @@
23
23
  csv_files = csv_file.getvalue()
24
24
 
25
25
  for csv_files in csv_files:
26
+
26
27
  #1行ずつ処理
27
28
 
28
29
  ```