我已经尝试使用pyautogui模块和我在屏幕上定位图像的功能
pyautogui.locateOnScreen()
Run Code Online (Sandbox Code Playgroud)
但它的处理时间约为5-10秒.我还有其他方法可以更快地在屏幕上找到图像吗?基本上,我想要一个更快版本的locateOnScreen().
class Wolf:
def __init__(self, legs):
self.legs = 4
class Dog(Wolf):
def __init__(self, color):
self.color = color
fido = Dog(legs = 4, color = "brown")
Run Code Online (Sandbox Code Playgroud)
这将抛出错误消息。我将如何做类似的事情,我将参数添加到与超类无关的子类。