python数组用法

风中奔跑 / 2023-07-21 / 原文

初始化数组: arr = []

向数组添加元素: arr.append('Hello')

从数组删除元素: arr.remove('Hello')

判断是否存在数据:if 'Hello' in arr