Python 添加数组项

添加数组元素

你可以使用 append() 方法向数组中添加元素。

实例

向 cars 数组中添加一个元素:

cars.append("Honda")

亲自试一试

相关页面

教程:

术语: