Home > database >  ValueError: unkown url type: this is how to return a responsibility
ValueError: unkown url type: this is how to return a responsibility

Time:09-23

The import urllib. Request
Keywd="hello"
Url="http://www.baidu.com/s? Wd="+ keywd
The req=urllib. Request. The request (url)
data=https://bbs.csdn.net/topics/urllib.request.urlopen (the req.) read ()
Fhandle=open (" D:/Python35/myweb/part4/4. HTML ", "wb")
Fhandle. Write (data)
Fhandle. Close ()


ValueError: unkown url type: 'urllib. Request. The request object at 0 x00000179cadedd90'

I am in python3.8 shell and 2019 pycharm running on all this
  • Related