列表:shoplist = ['apple', 'mango', 'carrot', 'banana']长度:len(shoplist)追加:shoplist.append('rice')指定位置插入:shoplist.insert(2, 'new')遍历:for item in shoplist: &n
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号