Python简单代码:

import urllib.request
def getHTML(url):
page = urllib.request.urlopen(url)
html = page.read().decode(“utf-8”)
return html
end =getHTML(“https://www.baidu.com/”)
print(end)

day04

相关文章:

  • 2022-02-24
  • 2022-01-20
  • 2022-01-20
  • 2021-11-06
  • 2021-04-19
  • 2021-12-02
  • 2021-06-07