from selenium import webdriver driver = webdriver.Chrome() #全屏 driver.maximize_window() #具体大小 driver.set_window_size(width, height) #打开指定网页 driver.get("http://www.baidu.com")