1 Star 0 Fork 0

成芷珊/homeworkfile

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mayisenlin1.py 758 Bytes
一键复制 编辑 原始数据 按行查看 历史
成芷珊 提交于 2021-10-30 14:46 . steal the power
# coding: utf-8
import uiautomator2 as u2
import time
d = u2.connect()
d.app_start("com.eg.android.AlipayGphone")
time.sleep(4)
d(text="蚂蚁森林").click()
time.sleep(3)
count = 0
while True:
count += 1
time.sleep(2)
d.click(0.187, 0.316)
d.click(0.31, 0.279)
d.click(0.44, 0.26)
d.click(0.566, 0.26)
d.click(0.692, 0.278)
d.click(0.799, 0.316)
d.click(0.187, 0.316)
d.click(0.31, 0.279)
d.click(0.44, 0.26)
d.click(0.896, 0.666) # 找能量
if d(text="startapp?appId=20000290&actionType=recommendList&source=by_antforest_potential_friend_list").exists:
d.app_stop("com.eg.android.AlipayGphone")
break
print("能量偷完咯~ 一共偷了", count, "个人")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cheng-zhishan/homeworkfile.git
[email protected]:cheng-zhishan/homeworkfile.git
cheng-zhishan
homeworkfile
homeworkfile
master

搜索帮助