📜  如何创建列表 python 代码示例

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

代码示例5
list = ['list element', 'list element']
# or t obe more effecient:
import numpy #if you do not have numpy, do "pip install numpy"
numpyarray = numpy.array(['array element', 'array element'])
#a numpy array is faster than a standard list