组卷题库 > 高中信息技术试卷库
试题详情
有如下Python程序段:

dict={1:"p",2:"y",3:"t",4:"h",5:"o",6:"n"}

    num=[4,2,1,5]

    result=""

    for i in num:

        result+=dict[i]

    print(result)

执行该程序段后,result的值为(   )

A、"hypo"
B、"opyh"
C、"nyto"
D、"otyn"
知识点
参考答案
采纳过本试题的试卷
    教育网站链接