課程
/后端開發
/Python
/Python3 入門教程(新版)
列表后追加列表如何實現
2021-11-10
源自:Python3 入門教程(新版) 7-3
正在回答
number?=?[1,2,3] number.extend([5,6]) print(number)
直接 用? “+‘’
list = ['A', 'B' ]
list_e =['C', 'D']
list += list_e?? #>>['A', 'B', 'C', 'D']
listTmp =[1,3,2,4]
listTmp2 =[5,6,78]
listTmp.extend(listTmp2)
print(listTmp)
舉報
python3入門教程,讓你快速入門并能編寫簡單的Python程序
2 回答在List列表中如何排序
2 回答如何使用一個列表匹配刪除呢?
1 回答函數參數是L,是如何識別他是一個列表?
1 回答怎么在for循環里表示列表內的偶數位置
1 回答感謝大佬,為什么用str(max)不在disorder 列表中
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2022-03-30
2022-02-20
直接 用? “+‘’
list = ['A', 'B' ]
list_e =['C', 'D']
list += list_e?? #>>['A', 'B', 'C', 'D']
2021-11-16
listTmp =[1,3,2,4]
listTmp2 =[5,6,78]
listTmp.extend(listTmp2)
print(listTmp)