更新时间:2022-10-17 08:29:18
我建议使用numpy的。
下面是对numpy的教程链接: http://www.scipy.org/Tentative_NumPy_Tutorial
我用numpy的很多关于各种数学函数和数据处理
Possible Duplicate:
How to define Two-dimensional array in python
I have a variable that represents the number files in a file, n. I want to make a array whose size is 'n' x 'n'. Then I want to fill it with just 0's. Is an array the same as a list of lists? How do you make an array in Python, and how do you make it 'n' by 'b' big? This is probably a very novice question, but I'm new to ***.com.
I suggest using NumPy.
Here is a link to the NumPy tutorial: http://www.scipy.org/Tentative_NumPy_Tutorial
I use NumPy a lot for all sorts of mathematical functions and data manipulation