enter image description here我想知道如何将功能f()创建的firefox配置文件保存在名为“ mon_dossier”的文件中
from selenium import webdriver
import pickle
def f():
fp = webdriver.FirefoxProfile('/profiles')
driver=webdriver.Firefox(firefox_profile=fp)
driver.get('https://www.google.com/')
pickle_out = open("b1.html", "wb")
pickle.dump(driver, pickle_out)
return driver
f()