← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #660097]: Multi Dimensal Array

 

Question #660097 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660097

    Status: Open => Answered

masuo proposed the following answer:
threeD[0,0,0] is wrong how to write subscripts.

And in your case
numbers of data: 2
numbers of element: 3
So threeD[0] [0] [0] is wrong.

threeD = []
threeD.append([1,2,3])
threeD.append([4,5,6])

print "numbers of data:",len(threeD)
print "numbers of element:",len(threeD[0])

for i in  range(2):
    print "data:%d" % (i+1)
    for j in range(3):
        print threeD[i][j];

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.