会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
腿毛怪
博客园
新随笔
管理
2019年8月5日
append|extend|insert|add
摘要: Python中 append|extend|insert|add 区别 append(seq) 将对象作为一个整体,添加到列表末尾,添加后列表仅增加1个元素。该对象可以是任意数据类型,函数没有返回值。 a = [1, 2, 'python'] b = ['mac', 'linux'] a.appen
阅读全文
posted @ 2019-08-05 15:35 年少无为腿毛怪
阅读(340)
评论(0)
推荐(0)
编辑
公告