天蓬老师2017-04-18 09:35:10
Your csvrow1 and csvrow2 are placed in the wrong place. You put them inside the loop, and each loop is directly initialized to an empty list
csvrow1=[]
csvrow2=[]
for links in get_data('http://finance.qq.com/gdyw.htm'):
csvrow1.append('http://finance.qq.com/'+links.get('href'))
for title in get_data('http://finance.qq.com/gdyw.htm'):
csvrow2.append(title.get_text())