摘要: append()函数 在列表中添加新元素时,最简单的方法就是附加在末尾: list_1 = ['one', 'two', 'three'] print(list_1) list_1.append('four') print(list_1) 函数append()就是将'four'添加在列表末尾,而且不 阅读全文
posted @ 2023-05-14 00:49 放氮气的蜗牛 阅读(121) 评论(0) 推荐(0) 编辑