获取坐标 import timeimport randomimport pyautoguipyautogui.PAUSE = 1pyautogui.FAILSAFE = Truetry: while True: x, y = pyautogui.position() print(str(x) + ', ' + str(y), end=" : ") r,g,b = pyautogui.screenshot().getpixel((x, y)) print(str(r) + ' ' + str(g) + ' ' + str(b)) time.sleep(2) except KeyboardInterrupt: print('unknowed error, plase check!') 1366*768 分辨率 全屏 import timeimport randomimport pyautoguipyautogui.PAUSE = 1pyautogui.FAILSAFE = Truedef sleepRandomTime(): time.sleep(random.randint(100,150) / 100)#游戏开始,卡牌确定,