Dictionary Methods

 0    12 Fiche    sir
скачать mp3 басу ойын өзіңді тексер
 
сұрақ жауап
Removes all the elements from the dictionary
оқуды бастаңыз
. clear()
Returns a copy of the dictionary.
оқуды бастаңыз
. copy()
Returns a dictionary with the specified keys and values
оқуды бастаңыз
dict. fromkeys(keys, value)
Returns the value of the specified key
оқуды бастаңыз
. get(key)
Returns a list containing the dictionary's keys
оқуды бастаңыз
. keys()
Returns a list containing the a tuple for each key value pair
оқуды бастаңыз
. items()
Removes the element with the specified key
оқуды бастаңыз
. pop(key)
Removes the last inserted key-value pair
оқуды бастаңыз
. popitem(keyname, defaultvalue)
Returns the value of the specified key. If the key does not exist: insert the key, with the specified value
оқуды бастаңыз
. setdefault(keyname, value)
Updates the dictionary with the specified key-value pairs
оқуды бастаңыз
. update(iterable)
Returns a list of all the values in the dictionary
оқуды бастаңыз
. values()
Checks whether a dictionary possesses the give key/index.
оқуды бастаңыз
. has_key()

Пікір қалдыру үшін жүйеге кіру керек.