#coding=utf-8 # 导入selenium的webdriver包 from selenium import webdriver # 将控制webdriver的Firefox赋值给driver driver=webdriver.Firefox() # 刷新当前浏览器页面 driver.refresh_page()