Commit fecd87b1 authored by lixiaofang's avatar lixiaofang

try except

parent c4d39acd
......@@ -2,8 +2,8 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/auto_follow.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/exe.py" beforeDir="false" afterPath="$PROJECT_DIR$/exe.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_follow_new.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_new.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_pick.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_pick.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -66,16 +66,16 @@
<entry key="csv" value="1" />
<entry key="cuigeng" value="3" />
<entry key="data" value="1" />
<entry key="guanshui" value="4" />
<entry key="py" value="277" />
<entry key="guanshui" value="5" />
<entry key="py" value="280" />
<entry key="xuqiu" value="3" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.open">
<counts>
<entry key="CSV" value="1" />
<entry key="PLAIN_TEXT" value="32" />
<entry key="Python" value="277" />
<entry key="PLAIN_TEXT" value="33" />
<entry key="Python" value="280" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
......@@ -85,32 +85,35 @@
<entry key="comment" value="16" />
<entry key="cuigeng" value="1" />
<entry key="data" value="12" />
<entry key="dummy" value="15" />
<entry key="py" value="7521" />
<entry key="dummy" value="31" />
<entry key="py" value="7663" />
<entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="161" />
<entry key="Python" value="7521" />
<entry key="PLAIN_TEXT" value="177" />
<entry key="Python" value="7663" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<splitter split-orientation="horizontal" split-proportion="0.5866503">
<split-first>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_urge.py">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="393">
<caret line="130" column="45" selection-start-line="130" selection-start-column="45" selection-end-line="130" selection-end-column="45" />
<state relative-caret-position="114">
<caret line="151" column="4" selection-start-line="151" selection-start-column="4" selection-end-line="151" selection-end-column="4" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#300#477#0" />
<element signature="e#501#888#0" />
<element signature="e#909#1593#0" />
<element signature="e#283#460#0" />
<element signature="e#484#871#0" />
<element signature="e#891#1576#0" />
<element signature="e#1599#2202#0" />
</folding>
</state>
</provider>
......@@ -133,8 +136,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="540">
<caret line="111" column="22" selection-start-line="111" selection-start-column="22" selection-end-line="111" selection-end-column="22" />
<state relative-caret-position="359">
<caret line="96" column="8" lean-forward="true" selection-start-line="96" selection-start-column="8" selection-end-line="96" selection-end-column="56" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#369#546#0" />
......@@ -148,51 +151,10 @@
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="183">
<caret line="145" column="66" selection-start-line="145" selection-start-column="66" selection-end-line="145" selection-end-column="66" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#283#460#0" />
<element signature="e#484#871#0" />
<element signature="e#891#1576#0" />
<element signature="e#1599#2202#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_pick_five.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="144" column="73" selection-start-line="144" selection-start-column="73" selection-end-line="144" selection-end-column="73" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#281#458#0" />
<element signature="e#482#869#0" />
<element signature="e#890#1575#0" />
<element signature="e#1609#1969#0" />
<element signature="e#1999#2212#0" />
<element signature="e#2242#2811#0" />
<element signature="e#2844#3269#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_star_topic.py">
<entry file="file://$PROJECT_DIR$/dd.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-80">
<caret line="136" column="45" selection-start-line="136" selection-start-column="45" selection-end-line="136" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#338#515#0" />
<element signature="e#539#926#0" />
<element signature="e#947#1632#0" />
</folding>
<state relative-caret-position="120">
<caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
</state>
</provider>
</entry>
......@@ -219,8 +181,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="246">
<caret line="175" selection-start-line="175" selection-end-line="181" selection-end-column="49" />
<state>
<caret selection-end-line="202" selection-end-column="73" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
......@@ -233,11 +195,27 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/exe.py">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/guanshui">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="425">
<caret line="265" column="14" selection-start-line="265" selection-start-column="14" selection-end-line="265" selection-end-column="14" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_follow_new.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" column="14" selection-start-line="7" selection-start-column="14" selection-end-line="7" selection-end-column="14" />
<state relative-caret-position="-650">
<caret line="129" column="67" selection-start-line="129" selection-start-column="9" selection-end-line="129" selection-end-column="67" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
<element signature="e#888#1571#0" />
<element signature="e#1607#1992#0" />
</folding>
</state>
</provider>
</entry>
......@@ -259,6 +237,27 @@
</entry>
</file>
</leaf>
</split-first>
<split-second>
<leaf>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_urge.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="393">
<caret line="130" column="45" selection-start-line="130" selection-start-column="45" selection-end-line="130" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#300#477#0" />
<element signature="e#501#888#0" />
<element signature="e#909#1593#0" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</split-second>
</splitter>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
......@@ -302,18 +301,20 @@
<option value="$PROJECT_DIR$/auto_commnet.py" />
<option value="$PROJECT_DIR$/auto_every_day.py" />
<option value="$PROJECT_DIR$/auto_lunch_app.py" />
<option value="$PROJECT_DIR$/auto_pick.py" />
<option value="$PROJECT_DIR$/auto_star_topic.py" />
<option value="$PROJECT_DIR$/auto_urge.py" />
<option value="$PROJECT_DIR$/auto_click.py" />
<option value="$PROJECT_DIR$/auto_follow.py" />
<option value="$PROJECT_DIR$/exe.py" />
<option value="$PROJECT_DIR$/dd.py" />
<option value="$PROJECT_DIR$/auto_follow_new.py" />
<option value="$PROJECT_DIR$/auto_pick.py" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="1">
<option name="x" value="43" />
<option name="y" value="55" />
<component name="ProjectFrameBounds">
<option name="x" value="24" />
<option name="y" value="23" />
<option name="width" value="1705" />
<option name="height" value="727" />
</component>
......@@ -358,7 +359,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python.exe">
<component name="RunManager" selected="Python.dd">
<configuration name="auto_click_star" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="cybertron" />
<option name="INTERPRETER_OPTIONS" value="" />
......@@ -401,6 +402,27 @@
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="dd" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="cybertron" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/dd.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="exe" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="cybertron" />
<option name="INTERPRETER_OPTIONS" value="" />
......@@ -413,7 +435,7 @@
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/exe.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/auto_follow_new.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
......@@ -448,9 +470,11 @@
<item itemvalue="Python.auto_click_star" />
<item itemvalue="Python.exercise" />
<item itemvalue="Python.exe" />
<item itemvalue="Python.dd" />
</list>
<recent_temporary>
<list>
<item itemvalue="Python.dd" />
<item itemvalue="Python.exe" />
<item itemvalue="Python.exercise" />
<item itemvalue="Python.auto_click_star" />
......@@ -471,15 +495,15 @@
<servers />
</component>
<component name="ToolWindowManager">
<frame x="43" y="55" width="1705" height="727" extended-state="1" />
<frame x="330" y="79" width="1705" height="727" extended-state="0" />
<editor active="true" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.20665084" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.030285036" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32921174" />
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32913387" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.21889764" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.392126" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
......@@ -583,13 +607,6 @@
<entry file="file://$PROJECT_DIR$/auto_one_day.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/guanshui">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="520">
<caret line="265" column="14" selection-start-line="265" selection-start-column="14" selection-end-line="265" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/batch user gen">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
......@@ -680,20 +697,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="183">
<caret line="145" column="66" selection-start-line="145" selection-start-column="66" selection-end-line="145" selection-end-column="66" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#283#460#0" />
<element signature="e#484#871#0" />
<element signature="e#891#1576#0" />
<element signature="e#1599#2202#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_pick_five.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
......@@ -724,19 +727,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_urge.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="393">
<caret line="130" column="45" selection-start-line="130" selection-start-column="45" selection-end-line="130" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#300#477#0" />
<element signature="e#501#888#0" />
<element signature="e#909#1593#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_urge_three.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="371">
......@@ -766,21 +756,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="540">
<caret line="111" column="22" selection-start-line="111" selection-start-column="22" selection-end-line="111" selection-end-column="22" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#369#546#0" />
<element signature="e#570#957#0" />
<element signature="e#977#1657#0" />
<element signature="e#2348#2936#0" />
<element signature="e#2970#3827#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-340">
......@@ -797,8 +772,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="246">
<caret line="175" selection-start-line="175" selection-end-line="181" selection-end-column="49" />
<state>
<caret selection-end-line="202" selection-end-column="73" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
......@@ -810,10 +785,73 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/exe.py">
<entry file="file://$PROJECT_DIR$/guanshui">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="425">
<caret line="265" column="14" selection-start-line="265" selection-start-column="14" selection-end-line="265" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="359">
<caret line="96" column="8" lean-forward="true" selection-start-line="96" selection-start-column="8" selection-end-line="96" selection-end-column="56" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#369#546#0" />
<element signature="e#570#957#0" />
<element signature="e#977#1657#0" />
<element signature="e#2348#2936#0" />
<element signature="e#2970#3827#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/dd.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_new.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-650">
<caret line="129" column="67" selection-start-line="129" selection-start-column="9" selection-end-line="129" selection-end-column="67" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#279#456#0" />
<element signature="e#480#867#0" />
<element signature="e#888#1571#0" />
<element signature="e#1607#1992#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_urge.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="393">
<caret line="130" column="45" selection-start-line="130" selection-start-column="45" selection-end-line="130" selection-end-column="45" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#300#477#0" />
<element signature="e#501#888#0" />
<element signature="e#909#1593#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_pick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" column="14" selection-start-line="7" selection-start-column="14" selection-end-line="7" selection-end-column="14" />
<state relative-caret-position="114">
<caret line="151" column="4" selection-start-line="151" selection-start-column="4" selection-end-line="151" selection-end-column="4" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#283#460#0" />
<element signature="e#484#871#0" />
<element signature="e#891#1576#0" />
<element signature="e#1599#2202#0" />
</folding>
</state>
</provider>
</entry>
......
......@@ -140,12 +140,16 @@ def get_commnet_id(numtime):
user_id = []
for i in data_id:
if i[0] is not None:
user_id.append(i)
for i in data1_id:
if i[0] is not None:
user_id.append(i)
for i in data2_id:
if i[0] is not None:
user_id.append(i)
for i in data3_id:
if i[0] is not None:
user_id.append(i)
print("Database version : %s " % user_id)
......
......@@ -140,6 +140,7 @@ def time_conv(numtime):
return None
def get_data(numtime):
try:
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123', db="alpha", port=3306)
cursor = db.cursor()
......@@ -149,6 +150,7 @@ def get_data(numtime):
logging.info("Database version : %s " % data)
db.close()
return user_id
except:
logging.error("catch exception,get_data:%s" % traceback.format_exc())
return None
......@@ -194,9 +196,9 @@ if __name__ == "__main__":
#topic
for i in time_list:
for i in range(len(time_list)):
numtime = time_conv(i)
numtime = time_conv(time_list[i])
user_id = get_data(numtime)
......
x=(None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (695,), (696,), (695,), (698,), (699,), (700,), (695,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (709,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (678,), (None,), (709,), (709,), (709,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (732,), (730,), (729,), (None,), (173,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,), (None,)
for i in x:
if i[0] is not None:
print(i[0])
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment