How to create an integer array in Python? -


It should not be so hard that I mean in C,

  int a [10] ];  

All you need to know how to create an array of all zeros for a random shape, I know the zero function in NumPy, but there is no other module but an easy way needed.

If you are not satisfied with the lists (because they can include anything and take a lot of storage You can use the efficient array of integers:

  Import array array.array ('i')  

View

< P> If you need to start it,

  a = array.array ('i', (0 I range (0, 10)))  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -