mirror of
https://github.com/tsxc-github/mzmcos--.git
synced 2025-09-10 11:19:17 +08:00
一定要记得close request啊!
This commit is contained in:
parent
cacbd8960a
commit
ffb2049496
@ -11,6 +11,9 @@ with open("feed.xml","w",encoding='UTF-8') as f:
|
|||||||
f.write(response.text)
|
f.write(response.text)
|
||||||
tree =ET.parse("feed.xml")
|
tree =ET.parse("feed.xml")
|
||||||
|
|
||||||
|
response.keep_alive = False
|
||||||
|
response.close()
|
||||||
|
|
||||||
print(tree)
|
print(tree)
|
||||||
root = tree.getroot()
|
root = tree.getroot()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user