一定要记得close request啊!

This commit is contained in:
tsxc 2025-01-26 22:18:46 +08:00
parent cacbd8960a
commit ffb2049496

View File

@ -11,6 +11,9 @@ with open("feed.xml","w",encoding='UTF-8') as f:
f.write(response.text)
tree =ET.parse("feed.xml")
response.keep_alive = False
response.close()
print(tree)
root = tree.getroot()