Commit 44358ec4 authored by lixiaofang's avatar lixiaofang

add

parent fea1b7a4
...@@ -40,14 +40,14 @@ ...@@ -40,14 +40,14 @@
<entry key="comment" value="59" /> <entry key="comment" value="59" />
<entry key="dummy" value="6" /> <entry key="dummy" value="6" />
<entry key="guanshui" value="2" /> <entry key="guanshui" value="2" />
<entry key="py" value="3352" /> <entry key="py" value="3368" />
<entry key="xuqiu" value="223" /> <entry key="xuqiu" value="223" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="PLAIN_TEXT" value="290" /> <entry key="PLAIN_TEXT" value="290" />
<entry key="Python" value="3352" /> <entry key="Python" value="3368" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -130,8 +130,8 @@ ...@@ -130,8 +130,8 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/instant.py"> <entry file="file://$PROJECT_DIR$/instant.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="521"> <state relative-caret-position="536">
<caret line="54" column="35" selection-start-line="54" selection-start-column="35" selection-end-line="54" selection-end-column="35" /> <caret line="55" column="31" selection-start-line="55" selection-start-column="31" selection-end-line="55" selection-end-column="31" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -500,6 +500,7 @@ ...@@ -500,6 +500,7 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-322" y="-1080" width="1920" height="1080" extended-state="6" /> <frame x="-322" y="-1080" width="1920" height="1080" extended-state="6" />
<editor active="true" />
<layout> <layout>
<window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" /> <window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" />
<window_info id="Favorites" order="1" side_tool="true" /> <window_info id="Favorites" order="1" side_tool="true" />
...@@ -513,7 +514,7 @@ ...@@ -513,7 +514,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" /> <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.34611398" /> <window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.3564767" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Python Console" order="10" /> <window_info anchor="bottom" id="Python Console" order="10" />
<window_info anchor="bottom" id="DB Execution Console" order="11" /> <window_info anchor="bottom" id="DB Execution Console" order="11" />
...@@ -932,8 +933,8 @@ ...@@ -932,8 +933,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/instant.py"> <entry file="file://$PROJECT_DIR$/instant.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="521"> <state relative-caret-position="536">
<caret line="54" column="35" selection-start-line="54" selection-start-column="35" selection-end-line="54" selection-end-column="35" /> <caret line="55" column="31" selection-start-line="55" selection-start-column="31" selection-end-line="55" selection-end-column="31" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
......
...@@ -30,18 +30,18 @@ if __name__ == "__main__": ...@@ -30,18 +30,18 @@ if __name__ == "__main__":
if topic_id_list: if topic_id_list:
def fun_timer(): def fun_timer():
exec_count = 0
cookies = login() cookies = login()
if cookies: if cookies:
click(cookies, topic_id_list) click(cookies, topic_id_list)
global timer global timer
exec_count =1 exec_count += 1
if exec_count == 1: if exec_count == 1:
print("---1-----") print("---1-----")
# sleep_time = random.randint(300, 540) # sleep_time = random.randint(300, 540)
sleep_time = 3 sleep_time = 3
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
exec_count+=1
if exec_count == 2: if exec_count == 2:
print("---2-----") print("---2-----")
...@@ -50,7 +50,6 @@ if __name__ == "__main__": ...@@ -50,7 +50,6 @@ if __name__ == "__main__":
sleep_time = 10 sleep_time = 10
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
exec_count += 1
if exec_count == 3: if exec_count == 3:
print("---3-----") print("---3-----")
...@@ -59,8 +58,6 @@ if __name__ == "__main__": ...@@ -59,8 +58,6 @@ if __name__ == "__main__":
sleep_time = 15 sleep_time = 15
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
exec_count += 1
timer = threading.Timer(1, fun_timer) # 首次启动 timer = threading.Timer(1, fun_timer) # 首次启动
......
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