📅  最后修改于: 2022-03-11 14:46:09.487000             🧑  作者: Mango
# general syntax; default can be anything
dict.setdefault(key[, default])
# Example:
dict_ = {}
dict_.setdefault('mykey', {})
print(dict_)
# {'mykey': {}}