課程
/后端開(kāi)發(fā)
/Python
/初識(shí)Python
dict三個(gè)特點(diǎn):1、查找速度快2、無(wú)序
3、key不可變,value可變
2014-10-23
源自:初識(shí)Python 6-4
正在回答
###?詞典有序 d?=?OrderedDict() d[95]?=?'Adam' d[85]?=?'Lisa' d[72]?=?'Paul' d[59]?=?'Bart' for?k?in?d: ????print?d[k]?+?':'?+?str(k) print?d.pop(59)
舉報(bào)
學(xué)python入門視頻教程,讓你快速入門并能編寫簡(jiǎn)單的Python程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-01-22