引入options即可
from time import sleep from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument('--headless') br = webdriver.Chrome(chrome_options=options) url = "https://www.tmall.com" br.get(url)