import requests

def request_with_cookie_and_authorization(url, cookies, authorization): headers = { "Host": "hotel.wanzhuhu.com", "Connection": "keep-alive", "charset": "utf-8", "content-type": "application/json;charset=utf-8", "User-Agent": "Mozilla/5.0 (Linux; Android 7.1.2; JEF-AN00 Build/N2G47H; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/3263 MMWEBSDK/20220105 Mobile Safari/537.36 MMWEBID/3599 MicroMessenger/8.0.19.2080(0x28001337) Process/appbrand0 WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 MiniProgramEnv/android", "Accept-Encoding": "gzip,compress,br,deflate", "Referer": "https://servicewechat.com/wxd0b0b4a5f0d0537f/130/page-frame.html" } headers["cookie"] = cookies headers["authorization"] = authorization

response = requests.get(url, headers=headers)
return response.content.decode("utf-8")
将这段代码的请求头写成一个可以替换多个cookie和authorization的程序import requestsurl = httpshotelwanzhuhucomguns-cloud-branchsignInsignInbranchId=10769&weekId=headers = Host hotelwanzhuhucom Connection keep-alive c