z3286586

1、通过requests.get方法

import requests
import os
import time
print(time.time())
r = requests.get("http://47.106.110.83/file.tex")
with open(os.path.join(os.path.dirname(os.path.abspath("__file__")), "file.txt"), "wb") as f:
    f.write(r.content)
print(time.time())

 

分类:

技术点:

相关文章:

  • 2021-08-18
  • 2021-12-08
  • 2021-11-18
  • 2021-09-19
  • 2021-10-26
  • 2021-11-12
  • 2021-11-18
  • 2021-11-18
猜你喜欢
  • 2021-11-18
  • 2021-11-28
  • 2021-10-08
  • 2021-09-29
  • 2021-12-05
  • 2021-11-18
  • 2021-11-07
相关资源
相似解决方案