赞
踩
- import os
- import shutil
- import time
class Ldconsole:
- console = r'E:\工具\LeiDIan\LeiDian\LDPlayer4.0\dnconsole.exe '
- ld = r'E:\工具\LeiDIan\LeiDian\LDPlayer4.0\ld.exe '
- def launch(index: int):
- cmd = Ldconsole.console + 'launch --index ' + str(index)
- process = os.popen(cmd)
- result = process.read()
- process.close()
- return result
- def app_star(index: int, package: str):
- cmd = Ldconsole.console + 'runapp --index %d --packagename %s' % (index, package)
- process = os.popen(cmd)
- result = process.read()
- process.close()
- print(result)
- return result
- def quit(index: int):
- cmd = Ldconsole.console + 'quit --index ' + str(index)
- process = os.popen(cmd)
- result = process.read()
- process.close()
- return result
a = Ldconsole()
- # 打开模拟器
- a.launch(0)
-
-
- # 启动APP
- a.app_star(0,'cn.damai')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。