```python student = ["张三", "李四", "王五", "周六", "赵七"] score = [ ["会计学", "c语言", "java"], ["python", "程序设计", "java"], ["数据结构", "c语言", "java"], ["python", "c语言", "大学计算机基础"], ["python", "会计学", "信息管理"] ] # 将两个列表转换为一个字典 dict2 = dict(zip(student, score)) # 遍历字典 for key, value in dict2.items(): print(key, ":", value) # 深拷贝字典 import copy dict2_copy = copy.deepcopy(dict2) # 删除周六的信息 del dict2_copy["周六"] # 添加键值对 dict2_copy["钱一"] = ["管理科学与工程", "大学计算机基础", "大学数学"] # 修改张三的课程 dict2_copy["张三"] = ["大学数学", "c语言", "python"] # 打印修改后的字典 for key, value in dict2_copy.items(): print(key, ":", value) ``` [2024-10-29 16:01:39 | AI写代码神器 | 254点数解答]