From c5c1892868852ae67ebe8364fe478762f95d4e1c Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 23 Oct 2019 16:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=AA=E6=80=A7=E5=8C=96?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 47 +++++++++++++++++----------------- data_channel/produce_ss_csv.py | 7 +++-- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7ecbf55..b1d428e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,6 +2,7 @@ + @@ -51,8 +52,8 @@ - - + + @@ -229,21 +230,7 @@ - - - - 1570881656516 - - - 1570881998308 - 1570882087553 @@ -574,17 +561,31 @@ - - - + @@ -595,7 +596,7 @@ - + @@ -742,8 +743,8 @@ - - + + diff --git a/data_channel/produce_ss_csv.py b/data_channel/produce_ss_csv.py index 08b40a2..f6753db 100644 --- a/data_channel/produce_ss_csv.py +++ b/data_channel/produce_ss_csv.py @@ -25,10 +25,9 @@ class ProduceSSCsv: filename = f"{self.base_path}/{gameid}_{channelid}__button_name.csv" with open(filename, 'w') as f: f.write("button_name,button_name_cn\n") - print(data) - for line in data: - pass - #print(line) + #print(data) + for key, values in data.items(): + f.write(f"{key},{values}\n") def run(self):