YZSP

  • Python数组添加元素的方法

    一、使用append()方法向数组添加元素 # 创建一个空数组 arr = [] # 使用append()方法向数组中添加元素 arr.append(1) arr.append(2…

    编程 2024-10-12