Python2中的urllib模块,在Python3中被修改为

20.5. urllib.request — Extensible library for opening URLs
20.6. urllib.response — Response classes used by urllib
20.7. urllib.parse — Parse URLs into components
20.8. urllib.error — Exception classes raised by urllib.request
20.9. urllib.robotparser — Parser for robots.txt

这几个模块,常用的urllib.urlopen()方法变成了urllib.request.urlopen()方法,其它方法的改变,可以参考Python3的文档

Python3文档的互联网协议与支持部分:http://docs.python.org/py3k/library/internet.html

相关文章:

  • 2022-12-23
  • 2021-12-26
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2018-06-13
  • 2021-07-06
  • 2022-03-07
  • 2021-10-27
相关资源
相似解决方案