我正在尝试设置硒,但是遇到错误“标识符中的无效字符”
这是我的代码:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
option = webdriver.ChromeOptions()
browser = webdriver.Chrome(executable_path = 'Macintosh HD/Users/username/Downloads/chromedriver',chrome_options=option)
无效字符在哪里?我尝试了多种变体,但仍然收到相同的错误