02-python中列表的增删改查

append()  #添加到原有列表的最后

In [1]: names = ["老王","老李","老刘","老张"] In [2]: names.append("老赵") In [3]: names Out[3]: ['老王', '老李', '老刘', '老张', '老赵']

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpggyy.html