开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2021.06.21
末尾追加元素
student=['Jack','Bob','Harry','Micle']
student.append('51zxw')
#指定位置添加元素
student.insert(0,'hello')
print(student)
student[0]='No.1'
#删除末尾元素
student.pop()
#删除指定位置元素
student.pop(1)
微信登录中...请勿关闭此页面