Python except不工作。我在努力 r = requests.get('URL') # URL returns something like: {"code": ["12345678"]} parsetime.sleep(2) print("Unable to get SMS Code, sleeping for 2 seconds...")
ex
我编写了一个for循环来重试pyautogui.locateOnScreen语句,直到它找到图像为止。由于某种原因,即使在最初的几次尝试中找到了图像,代码还是会遍历所有的20个循环。有人能看到问题吗?for x in range(0, 20): if pyautogui.locateOnScreen("PPTTTW.png", region=(537, 682,93, 325)):
print(&quo