python數據類型-字典的練習

自己做的: dic = {'k1':'v1','k2':'v2','k3':'v3','k4':'v4'} #1.循環所有k,value,key和value # for k in dic: # print(k) # for v in dic: # print(dic[v]) # for i in dic: # print(i,dic[i]) #2.添加: # dic['k5']='v5' # pr
相關文章
相關標籤/搜索