Appending items to a list of lists in python [duplicate]
问题 This question already has answers here : List of lists changes reflected across sublists unexpectedly (13 answers) Closed 3 years ago . I'm getting mad with list indexes, and can't explain what I'm doing wrong. I have this piece of code in which I want to create a list of lists, each one containing values of the same circuit parameter (voltage, current etc..) that I'm reading from a csv file that looks like this: Sample, V1, I1, V2, I2 0, 3, 0.01, 3, 0.02 1, 3, 0.01, 3, 0.03 And so on. What I