python3中rlopen被替换成了什么?

我在学习python时,使用rlopen,但是报错说module 'urllib.request' has no attribute 'rlopen',我知道这个是python2中的东西,请问python3中应该怎么写。

response = urllib.request.rlopen(webUrl);//webUrl是一个网页地址
阅读 2k
1 个回答

urlopen吧?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题