基本信息
文件名称:Python程序设计及应用(上)_北京科技大学中国大学mooc章节课后测试答案期末考试题库2024年.docx
文件大小:21.15 KB
总页数:13 页
更新时间:2025-06-18
总字数:约1.78万字
文档摘要
Python程序设计及应用(上)_北京科技大学中国大学mooc章节课后测试答案期末考试题库2024年
下列代码中,输出结果是字典类型对象{1:(apple,100),2:(banana,50),3:(orange,80)}的选项是()。知识点:字典推导式,zip函数,enumerate函数
答案:fruit=[(apple,banana,orange),(100,50,80)]a={i+1:itemfori,iteminenumerate(zip(*fruit))}_fruit=(apple,banana,orange)weight=(100,