From e68650fe71ecba464530c9665ac7e09dfb137818 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 23 Oct 2019 16:11:21 +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 | 38 ++++++++++++++++------------------ data_channel/produce_ss_csv.py | 8 ++++--- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cd19fd7..7ecbf55 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,7 @@ - - @@ -20,8 +18,8 @@ - - + + @@ -53,8 +51,8 @@ - - + + @@ -231,14 +229,7 @@ - - - - 1570865234245 - 1570881656516 @@ -576,11 +567,18 @@ - - @@ -734,8 +732,8 @@ - - + + @@ -744,8 +742,8 @@ - - + + diff --git a/data_channel/produce_ss_csv.py b/data_channel/produce_ss_csv.py index f25aa4f..101698f 100644 --- a/data_channel/produce_ss_csv.py +++ b/data_channel/produce_ss_csv.py @@ -17,16 +17,18 @@ def get_mp_interface(gameid, channelid): class ProduceSSCsv: def __init__(self): # self.base_path = "/data/git/ops_interface/myops/csv" - self.base_path = "/tmp/" + self.base_path = "/tmp" self.gameid_list = [1004, 1001, 2001, 1011] self.channelid = 6001 def write2csv(self, gameid, channelid, data): - filename = f"{gameid}_{channelid}__button_name.csv" + 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: - print(line) + pass + #print(line) def run(self):