源码: import requests from lxml import etree from my_mysql import MysqlConnect mc = MysqlConnect(','homework') sql = 'insert into lianjia(title,addr,shape,area,dire,price) values(%s,%s,%s,%s,%s,%s)' for page in range(3): url = 'https://bj.lianjia.com/z…