调整个性化路径
This commit is contained in:
parent
c5c1892868
commit
0bf8ed028f
28
.idea/workspace.xml
generated
28
.idea/workspace.xml
generated
@ -52,8 +52,8 @@
|
|||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/data_channel/produce_ss_csv.py">
|
<entry file="file://$PROJECT_DIR$/data_channel/produce_ss_csv.py">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="429">
|
<state relative-caret-position="198">
|
||||||
<caret line="27" column="13" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
|
<caret line="23" column="23" selection-start-line="23" selection-start-column="23" selection-end-line="23" selection-end-column="23" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#24#34#0" expanded="true" />
|
<element signature="e#24#34#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
@ -230,14 +230,7 @@
|
|||||||
<workItem from="1571371398024" duration="626000" />
|
<workItem from="1571371398024" duration="626000" />
|
||||||
<workItem from="1571396636592" duration="1545000" />
|
<workItem from="1571396636592" duration="1545000" />
|
||||||
<workItem from="1571812301360" duration="2782000" />
|
<workItem from="1571812301360" duration="2782000" />
|
||||||
<workItem from="1571816131529" duration="2207000" />
|
<workItem from="1571816131529" duration="2262000" />
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00004" summary="fix">
|
|
||||||
<created>1570882087553</created>
|
|
||||||
<option name="number" value="00004" />
|
|
||||||
<option name="presentableId" value="LOCAL-00004" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1570882087553</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00005" summary="fix">
|
<task id="LOCAL-00005" summary="fix">
|
||||||
<created>1570882247813</created>
|
<created>1570882247813</created>
|
||||||
@ -575,11 +568,18 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1571818319380</updated>
|
<updated>1571818319380</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="53" />
|
<task id="LOCAL-00053" summary="调整个性化路径">
|
||||||
|
<created>1571818432680</created>
|
||||||
|
<option name="number" value="00053" />
|
||||||
|
<option name="presentableId" value="LOCAL-00053" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1571818432680</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="54" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="47572000" />
|
<option name="totallyTimeSpent" value="47627000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
|
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
|
||||||
@ -743,8 +743,8 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/data_channel/produce_ss_csv.py">
|
<entry file="file://$PROJECT_DIR$/data_channel/produce_ss_csv.py">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="429">
|
<state relative-caret-position="198">
|
||||||
<caret line="27" column="13" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
|
<caret line="23" column="23" selection-start-line="23" selection-start-column="23" selection-end-line="23" selection-end-column="23" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#24#34#0" expanded="true" />
|
<element signature="e#24#34#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
@ -21,8 +21,8 @@ class ProduceSSCsv:
|
|||||||
self.gameid_list = [1004, 1001, 2001, 1011]
|
self.gameid_list = [1004, 1001, 2001, 1011]
|
||||||
self.channelid = 6001
|
self.channelid = 6001
|
||||||
|
|
||||||
def write2csv(self, gameid, channelid, data):
|
def write2csv(self, data):
|
||||||
filename = f"{self.base_path}/{gameid}_{channelid}__button_name.csv"
|
filename = f"{self.base_path}/all__button_name.csv"
|
||||||
with open(filename, 'w') as f:
|
with open(filename, 'w') as f:
|
||||||
f.write("button_name,button_name_cn\n")
|
f.write("button_name,button_name_cn\n")
|
||||||
#print(data)
|
#print(data)
|
||||||
@ -33,7 +33,7 @@ class ProduceSSCsv:
|
|||||||
def run(self):
|
def run(self):
|
||||||
for gameid in self.gameid_list:
|
for gameid in self.gameid_list:
|
||||||
data = get_mp_interface(gameid, self.channelid)
|
data = get_mp_interface(gameid, self.channelid)
|
||||||
self.write2csv(gameid, self.channelid, data)
|
self.write2csv(data)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user