为什么我不断收到中断错误?我对继续和通过有同​​样的问题

Why do i keep getting break error? I have the same problem with continue and pass

from webbot import Browser
import time
import pyautogui
from pyautogui import *
web = Browser()
a == True
web.go_to('http://au.yahoo.com//')
web.scrolly(100)
if a == True:
    try:
        web.click('Skip for now')
        break
web.click('Mail')
time.sleep(10)
pyautogui.keyDown('ctrl')

break 不断出现意外错误

我想让它试试点击'skip for now',如果不行就继续代码

try:
    web.click("Skip for now")
except:
    pass
web = Browser()
a == True
web.go_to('http://au.yahoo.com//')
web.scrolly(100)
if a == True:
    try:
        web.click('Skip for now')
    except:
        pass
web.click('Mail')
time.sleep(10)
pyautogui.keyDown('ctrl')

编辑:错过 except

的咒语