[Python] 纯文本查看 复制代码import os
import shutil
import time
from xml.dom.minidom import parseString
import cv2 as cv
# 注意pc下的C:/Users/冯攀/Documents/雷电模拟器/Pictures/和安卓上面的/sdcard/Pictures/文件夹是相通的
class DnPlayer(object):
def __init__(self, info: list):
super(DnPlayer, self).__init__()
# 索引,标题,顶层窗口句柄,绑定窗口句柄,是否进入android,进程PID,VBox进程PID
self.index = int(info[0])
self.name = info[1]
self.top_win_handler = int(info[2])
self.bind_win_handler = int(info[3])
self.is_in_android = True if int(info[4]) == 1 else False
self.pid = int(info[5])
self.vbox_pid = int(info[6])
def is_running(self) -> bool:
return self.is_in_android
def __str__(self):
index = self.index
name = self.name
r = st