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

for x in cars:
  print(x)
运行结果: