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

原文地址:https://www.cnblogs.com/laochun/p/13139296.html