代码示例:(标识:python_array_2)
python_array_2.py
cars = ["Porsche", "Volvo", "BMW"]

x = cars[0]

print(x)
运行结果: