💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ # 闯关代码 # 截屏:adb shell screencap -p /sdcard/screen.png # 保存:adb pull /sdcard/screen.png # 点击:adb shell input tap x y # 翻页:adb shell input swipe x1 y1 x2 y2 import os import time # os.system("logo.jpg") os.system("adb shell screencap -p /sdcard/screen.png")# 截屏 os.system("adb pull /sdcard/screen.png")# 保存 # os.system("adb shell input tap x y")# 模拟点击 def click(x,y): return os.system("adb shell input tap {} {}".format(x,y))# 模拟点击 if __name__ == '__main__': for i in range(60): click(1440, 885) print("开始闯关") print("正在加载") time.sleep(15) print("正在战斗") time.sleep(150) click(1622, 997) time.sleep(5) click(1622, 997) # click(1440, 885) # print("开始闯关") # print("正在加载") # time.sleep(15) # print("正在战斗") # time.sleep(80) # click(x, y) # time.sleep(5) # print("再次挑战") # time.sleep(5) # click(x, y) ~~~