N
N
Nubbin2018-03-05 13:32:33
Python
Nubbin, 2018-03-05 13:32:33

Python multi array?

That I ask too many questions today.
Guys help me with one more problem.

__data = dict()

__data[data[0]][data[1]][data[2]] = [
                {'id':data[2]}
            ]

Why doesn't that work.
I did this in php
$this->data[$data[0]][$data[1]][$data[2]] = [
                'id' => $data[2]
            ];

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question