dict转str cookie_list = [item["name"] + "=" + item["value"] for item in browser.get_cookies()] cookie = ';'.join(item for item in cookie_list)str转dictcookies_str="PHPSESSID=r9r8cgomqe61q3ndu6e0; GUIDE_MAP:=1594190653;Hm_lvt_83efb6da7f0d183ee8ad0d78f0=1