def get_captcha(self):img = self.s.get(self.captcha_url, headers=self.headers, verify=False)byte = img.contentprint(byte)i = 1with open("{}.png".format(i), "wb") as f:f.write(byte)
1500字范文,内容丰富有趣,写作好帮手!
时间:2023-04-09 12:03:52
def get_captcha(self):img = self.s.get(self.captcha_url, headers=self.headers, verify=False)byte = img.contentprint(byte)i = 1with open("{}.png".format(i), "wb") as f:f.write(byte)