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)