python 在字典中添加键值对的方法。

时间:2025-03-28 09:23:47

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

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

 

相关文章