How to iterate over two arrays at once?

后端 未结 6 1289
我在风中等你
我在风中等你 2020-12-14 20:44

I have two arrays built while parsing a text file. The first contains the column names, the second contains the values from the current row. I need to iterate over both list

6条回答
  •  感动是毒
    2020-12-14 21:15

    Instead of creating two seperate arrays you could make a two-dimensional array, or a dictionary (which would be better). But really, if it works I wouldn't try to change it.

提交回复
热议问题