extend 和 append 的区别

a.extend(b) b只能是个列表,列表中的数据是一个一个去

a.append(b)   把b当作一个整体取入

 

posted @ 2018-08-10 10:00  zmwzmw  阅读(108)  评论(0编辑  收藏  举报