initialize a dictionary
Steven Bethard
steven.bethard at gmail.com
Wed Mar 30 17:26:08 EST 2005
shama.bell at gmail.com wrote:
> I need to iterate values by row and column as well.
>
> I tried this....
> w,x = 32, 16
> A = [ [0x0]*w for i in range(x)]
> print A
py> import numarray
py> print numarray.zeros((16, 8))
[[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]]
STeVe
More information about the Python-list
mailing list