It should not be so hard. I mean in C,
int a[10];
is all you need. How to create an array of all zeros for a random size. I know the zeros() function in NumPy but there must be an easy way built-in, not another module.
解决方案
If you are not satisfied with lists (because they can contain anything and take up too much memory) you can use efficient array of integers:
array.array('i')
If you need to initialize it,
a=array.array('i',(0 for i in range(0,10)))