Commit 4ff0dbc4 authored by lixiaofang's avatar lixiaofang

add

parent fc752eda
...@@ -35,11 +35,12 @@ if __name__ == "__main__": ...@@ -35,11 +35,12 @@ if __name__ == "__main__":
click(cookies, topic_id_list) click(cookies, topic_id_list)
global timer global timer
global exec_count global exec_count
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 = 30
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
...@@ -47,20 +48,20 @@ if __name__ == "__main__": ...@@ -47,20 +48,20 @@ if __name__ == "__main__":
print("---2-----") print("---2-----")
# sleep_time = random.randint(1000, 1900) # sleep_time = random.randint(1000, 1900)
sleep_time = 10 sleep_time = 50
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
if exec_count == 3: # if exec_count == 3:
print("---3-----") # print("---3-----")
#
# sleep_time = random.randint(2000, 3000) # # sleep_time = random.randint(2000, 3000)
sleep_time = 15 # sleep_time = 70
timer = threading.Timer(sleep_time, fun_timer) # timer = threading.Timer(sleep_time, fun_timer)
timer.start() # timer.start()
timer = threading.Timer(1, fun_timer) # 首次启动 timer = threading.Timer(10, fun_timer) # 首次启动
timer.start() timer.start()
except: except:
......
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