Python2.7貌似没request,所以用以下的方法
import urllib
resp = urllib.urlopen('http://www.qq.com')
print(resp.read())
import urllib
resp = urllib.urlopen('http://www.qq.com')
print(resp.read())
2017-03-11
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''urls' ('urlname','urlhref') values('Wikipedia','https://en.wikipedia.org/wiki/W' at line 1")
2017-03-03