#!/usr/local/bin/python2.7# -*- coding: utf-8 -*-:import requestsfrom pyquery import PyQuery as pqrs = requests.get("http://www.52maps.com/china_city.php")rs.encoding = 'utf-8'doc = pq(rs.text)print doc
本文共 250 字,大约阅读时间需要 1 分钟。
#!/usr/local/bin/python2.7# -*- coding: utf-8 -*-:import requestsfrom pyquery import PyQuery as pqrs = requests.get("http://www.52maps.com/china_city.php")rs.encoding = 'utf-8'doc = pq(rs.text)print doc
转载于:https://www.cnblogs.com/daas/p/6178149.html