源代码
cars = ["Porsche", "Volvo", "BMW"] x = len(cars) print(x)
运行结果