题目内容

下面代码的执行结果是( )s = ([1,[ 2, 3]], [[4, 5], 6], [7, 8])print(len(s))

A. 1
B. 2
C. 3
D. 4

查看答案
更多问题

以下程序的输出结果是( )dw =["狮子","猎豹","虎猫","花豹","老虎","雪豹"]for s in dw:if "豹" in s:print(s,end=",")continue

A. 狮子,猎豹,虎猫
B. 狮子,虎猫,老虎,
C. 猎豹,花豹,雪豹,
D. 猎豹,花豹,雪豹

下列程序的运行结果是( )s = "Python""{0:3}".format(s)

A. 'Pyth'
B. 'Pyt'
C. 'Python'
D. ' thon'

下面代码的输出结果是( )name = "Python程序设计教程"print(name[2: –2])

A. thon程序设计教
B. hon程序设计教
C. ython程序设计
D. thon程序设计

语句print("{0:{1}{3}{2}}".format("Python","=",8,"<"))的执行结果是( )

A. Python==
B. ==Python
C. Python>>
D. >>Python

答案查题题库