如下程序的输出结果是:lcat =[“狮子”,“猎豹”,“虎猫”,“花豹”,“孟加拉虎”,“美洲豹”,“雪豹”]for s in lcat:if “豹” in s:print(s,end="")continue
A. 猎豹花豹美洲豹雪豹
B. 猎豹
C. 雪豹
D. 猎豹花豹美洲豹雪豹
s = " Python", 可以显示输出 Python 的选项是:
A. print(s[0:-1])
B. print(s[-1:0])
C. print(s[:6])
D. print(s[:])
如下程序的输出结果是:x = [90,87,93]y = [“zhang”, “wang”,“zhao”] print(list(zip(y,x)))
A. (‘zhang’, 90), (‘wang’, 87), (‘zhao’, 93)
B. [[‘zhang’, 90], [‘wang’, 87], [‘zhao’, 93]]
C. [‘zhang’, 90], [‘wang’, 87], [‘zhao’, 93]
D. [(‘zhang’, 90), (‘wang’, 87), (‘zhao’, 93)]