📜  python 声明大小为 n 的数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.742000             🧑  作者: Mango

代码示例3
array1 = [] #an empty array
array2 = list() #another empty arrat
array3 = ["1", "2", "3"] #array initialization with value
arrat4 = [x for x in range(1,11) #list comprehension