我打的这行代码哪里有错,请大神指正一下。要用python2×的哦
import sys
import urllib
url="http://www.baidu.com"
wp=urllib.urlopen(url)
content=wp.read()
fp=open("E:\\python\\web.txt","w")
fp=write(content)
fp.close()
import sys
import urllib
url="http://www.baidu.com"
wp=urllib.urlopen(url)
content=wp.read()
fp=open("E:\\python\\web.txt","w")
fp=write(content)
fp.close()
2017-06-13
举报