+ 1
Please explain the get dictionary in python 3.0.
2 Réponses
+ 2
You mean the dictionary’s get() method?
# given a dict D
d.get(key)
# returns the value
d[key]
# equivalent to above
Here you find examples:
http://www.tutorialspoint.com/JUMP_LINK__&&__python__&&__JUMP_LINK/dictionary_get.htm
+ 1