相关试题
单选题 下面代码的输出结果是 d ={"大海":"蓝色", "天空":"灰色", "大地":"黑色"} print(d["大地"], d.get("大地", "黄色"))
单选题 下面代码的输出结果是 s =["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2])
单选题 给出如下代码: DictColor = {"seashell":"海贝色","gold":"金色","pink":"粉红色","brown":"棕色", "purple":"紫色","tomato":"西红柿色"} 以下选项中能输出"海贝色"的是
单选题 下面代码的输出结果是 a = [[1,2,3], [4,5,6], [7,8,9]] s = 0 for c in a: for j in range(3): s += c[j] print(s)
单选题 下面代码的输出结果是 x=10 y=3 print(divmod(x,y))
单选题 文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,下面代码的输出结果是 txt = open("book.txt", "r") print(txt) txt.close()
单选题 下面代码的输出结果是 x = 0o1010 print(x)
单选题 下面代码的输出结果是 for s in "HelloWorld": if s=="W": continue print(s,end="")