Commit 4ff0dbc4 authored by lixiaofang's avatar lixiaofang

add

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