I have difficulties with python.I hope I'm going to learn fast : )
my question is how to do 2D array in python ?
I knew that it's in java as that
a[][]=newdouble[n][m]
but I don't know what is it in python ?
from pylab import* x_start = -200 x_end = 200 y_start = -100 y_end = 100 delta = 10 n = 40 m = 20 xi = 0 for xi in range(0,n+1): xi=x_start+(xi*delta) print "xi",xi yi = 0 for yi in range(0,m+1): yi=y_start+(yi*delta) print "yi",yi
I'm trying to measure side of cube .
the x and y of the top side .
and I collect all the x direction I meant from (-200,200)
and the y form (-100,100)
I want to do 2D array to calculate all the point in the surface " top side "
need your Help !
layo

New Topic/Question
Reply




MultiQuote







|