单选题 s = "the sky is blue",表达式 print(s[-4:], s[:-4]) 的结果是:

A、 the sky is blue
B、 blue is sky the
C、 sky is blue the
D、 blue the sky is
下载APP答题
由4l***oe提供 分享 举报 纠错

相关试题

单选题 下面代码的输出结果是 d ={"大海":"蓝色", "天空":"灰色", "大地":"黑色"} print(d["大地"], d.get("大地", "黄色"))

A、黑的 灰色
B、黑色 黑色
C、黑色 蓝色
D、黑色 黄色

单选题 下面代码的输出结果是 s =["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2])

A、['gold', 'pink', 'brown']
B、['gold', 'pink']
C、['gold', 'pink', 'brown', 'purple', 'tomato']
D、['gold', 'brown']

单选题 给出如下代码: DictColor = {"seashell":"海贝色","gold":"金色","pink":"粉红色","brown":"棕色", "purple":"紫色","tomato":"西红柿色"} 以下选项中能输出"海贝色"的是

A、print(DictColor.keys())
B、print(DictColor["海贝色"])
C、print(DictColor.values())
D、print(DictColor["seashell"])

单选题 下面代码的输出结果是 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)

A、0
B、45
C、以上答案都不对
D、24

单选题 下面代码的输出结果是 x=10 y=3 print(divmod(x,y))

A、(1, 3)
B、3,1
C、1,3
D、(3, 1)

单选题 文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,下面代码的输出结果是 txt = open("book.txt", "r") print(txt) txt.close()

A、book.txt
B、txt
C、以上答案都不对
D、book

单选题 下面代码的输出结果是 x = 0o1010 print(x)

A、520
B、1024
C、32768
D、10

单选题 下面代码的输出结果是 for s in "HelloWorld": if s=="W": continue print(s,end="")

A、Hello
B、World
C、HelloWorld
D、Helloorld