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

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

代码示例6
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