From eac403c3ab5feb824062fe0d6c5af5c5cc7e20da Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Oct 2019 15:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A02001=20b=5FN=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_channel/mp2shushu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_channel/mp2shushu.py b/data_channel/mp2shushu.py index 853913a..1992f7f 100644 --- a/data_channel/mp2shushu.py +++ b/data_channel/mp2shushu.py @@ -25,8 +25,8 @@ class Mp2shushu(): result = data['result'] begin = "b_n,b_n_china" text = "" - for line in result: - text += ','.join(line) + '\n' + for key in result.keys(): + text += f"{key},{result[key]}\n" result_new = f"{begin}\n{text}" except Exception: log.error(f"split {data} failed!", exc_info=True)