在python中,调用clear()和分配{}字典有区别吗?如果是,那是什么?例:
clear()
{}
d = {"stuff":"things"} d.clear() #this way d = {} #vs this way
python dictionary
dictionary ×1
python ×1