python自动化脚本
Mlena
这个作者很懒,什么都没留下…
展开
-
python自动化脚本--唤醒灭屏
唤醒灭屏手机import timeimport osclass App: def __init__(self,count): self.count=count def wakeup_sleep(self): cmd="adb shell input keyevent 26" os.popen(cmd) time....原创 2019-07-18 14:10:37 · 3956 阅读 · 1 评论 -
python自动化脚本安装apk
记录学习python过程中写的脚本#!/usr/bin/env python# -*- coding: utf-8 -*-import osimport timeclass appInstall: def __init__(self,path): self.path = path def auto_install(self): #获取pat...原创 2019-07-16 14:35:40 · 1780 阅读 · 0 评论 -
python自动化脚本-开关wifi
思路:通过adb命令开关wifi#!/usr/bin/env python# -*- coding: utf-8 -*-import osimport timeclass Wifi(): def __init__(self,count): self.count = count# 开启wifi的方法 def openWifi(self): ...原创 2019-07-16 14:46:29 · 2346 阅读 · 0 评论 -
python自动化脚本--自动重启android手机
思路:通过adb reboot命令来控制android手机自动重启#!/usr/bin/env python# -*- coding: utf-8 -*-import osimport timeclass Reboot(): def __init__(self,count): self.count = count def reboot(self): ...原创 2019-07-16 14:52:45 · 3426 阅读 · 0 评论