Append lists for CSV output in Python
问题 At the moment I am scraping data from the web and want to output it into CSV. Everything is working fine but as soon as I append more than one list in the iteration the list has the wrong format. I start with sth like this: list = [a, b, c] list_two = [d, e, f] list_three = [g, h, i] first iteration: list = [list, list_two] # list = [[a, b, c], [d, e, f]] second iteration: list = [list, list_three] I get: # list = [[[a, b, c], [d, e, f]], [g, h, i]] I want to have: # list = [[a, b, c], [d, e,