Python List 对象的 append 和 extend 的区别
摘要:
1.append: Appends object at end x = [1, 2, 3] x.append([4, 5]) x = [1, 2, 3, [4, 5]] 2. extend: Extends list by appending elements from the iterable x 阅读全文
posted @ 2022-04-20 10:56 norsd 阅读(14) 评论(0) 推荐(0)
浙公网安备 33010602011771号