Python模拟Android坐标自动循环点击

import os
from time import sleep

def photo():
# 启动
os.system("adb shell input tap 100 100") # 坐标
sleep(7)
# 退出
os.system("adb shell input tap 100 750")
sleep(2)
if __name__ == '__main__':
total_times = 1000
times = 1
while(times <= total_times):
photo()
print(times)
times += 1

 

posted @ 2020-06-16 09:39  酷酷的小庄  阅读(373)  评论(0编辑  收藏  举报
/* 鼠标点击求赞文字特效 */