python 列表的append方法与extend的区别

append()方法将可迭代对象(列表)当做元素添加

extend()方法将可迭代对象(列表)中元素一个一个添加

猜你喜欢

转载自blog.csdn.net/Growing_hacker/article/details/107957863