以下程序的输出结果是。
lcat =["狮子","猎豹","虎猫","花豹","孟加拉虎","美洲豹","雪豹"]
for s in lcat:
if "豹" in s:
print(s,end="")
continue
lcat =["狮子","猎豹","虎猫","花豹","孟加拉虎","美洲豹","雪豹"]
for s in lcat:
if "豹" in s:
print(s,end="")
continue
举一反三
- 以下代码的输出结果是。 for s in "testatest": if s=="a": continue print(s, end=')
- 10438.以下代码的输出结果是______。 for s in "HelloWorld": if s=="W": continue print(s,end="")
- s = {1,2,3}[br][/br] for i in s: print(i,end='') print() 以上程序输出结果为( )
- 下面代码的输出结果是 for s in "HelloWorld": if s=="W": break print(s, end="")
- 以下程序 s=3 for c in "Python": s=s+2 print(s) 的输出结果是:( )