Commit 0255bd8e authored by lixiaofang's avatar lixiaofang

add

parent aa3c776d
...@@ -34,22 +34,22 @@ if __name__ == "__main__": ...@@ -34,22 +34,22 @@ if __name__ == "__main__":
print(lenn) print(lenn)
random = [] randoms_id = []
for i in range(lenn % 2): for i in range(lenn % 2):
rand_num = random.randint(0, len(user_ids)) rand_num = random.randint(0, len(user_ids))
random.append(lenn[rand_num]) randoms_id.append(lenn[rand_num])
print(random) if randoms_id:
for i in random: for i in randoms_id:
time.sleep(random.randint(10, 50)) time.sleep(random.randint(10, 50))
cook = login() cook = login()
if cook is not None: if cook is not None:
click(cook, i) click(cook, i)
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
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