close

Index :
1.
字典

1.1.fromkeys()

1.2.key()

1.3.values()

1.4.items()

1.5.clear()

1.6.copy()

1.7.pop()

1.8.popitem()

1.9.setdefault()

1.10.update()

 

 

 

 

fromkeys()

formkeys(…)

    dict.fromkeys(S[,v]) ->

            New dict with key from S and values , equal to v ( v defaults to None )

S = 鍵值 , V = Value

 

 

key() //返回字典鍵的引用

values()

items()

 

 

clear()

 

1.6.copy()

 

 

 

1.7.pop .給定鍵彈出的值

1.8.popitem.彈出一個項目

 

1.9.setdefault 

 

1.10.update() : 利用一個字典或映射關係去更新另外一個字典

 

 

arrow
arrow
    全站熱搜

    Eric 發表在 痞客邦 留言(0) 人氣()