As Gabriel said, you should indicate your questions.
When you talk about arrays, I think you are referencing lists. Python arrays are used to store numeric values.
However, what you could do to convert your turn into a nested list: # output list:
collectedData = list() # # # # for every thread, call: threadBuffer = [item for item in q.queue] collectedData.append(threadBuffer)
This will collect your data in nested lists, which you can easily access, for example, in this example:
l = list() l.append([1,2,3,4,5]) l.append([6,7,8,9,0,11,22,33])
Now you can freely contact: l [2] [2] β 9
Does this help you?
Best regards, Christian
source share