list 添加元素的方法是  list.append(a)。将 a 添加到 list 里。

dict 添加元素的方法是  dict.update(dict2)。意为,将 dict2 的内容添加到 dict 中。

 

相关文章: