单选题 执行语句 x = {3} 之后,变量x的类型是(  )。

A、 列表
B、 元组
C、 字典
D、 集合
下载APP答题
由4l***19提供 分享 举报 纠错

相关试题

单选题 下面说法正确的是(  )。

A、在Python中,选择结构的if必须有对应的e1se,否则程序无法执行
B、对于带else的循环结构,如果由于循环结构中执行了break语句而提前结束循环结构,将会继续执行else中的代码
C、Python中的异常处理结构必须带有finally子句
D、Python中的异常处理结构可以不带else子句

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

A、

World

B、

HelloWorld

C、

Helloorld

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

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

单选题 (  )语句用来中断本次循环,跳过循环结构中该语句后面的代码,提前进入下一次循环。

A、break
B、findall
C、continue
D、else

单选题 Python中range(3,12,3)产生的等差数列为(  )。

A、3,6,9,12
B、3,12,3
C、3,6,9
D、3,4,5

单选题 print("{1} {0} {1}".format(“name", “python")) 运行结果为(  )。

A、

name python python

B、

python name python

C、

python python name

D、

name python name

判断题 表达式isinstance([3,5,7],list)的值为(  )。 NoB、TrueC、FalseD、Yes isinstance()函数用于检查一个对象是否是指定类型的实例。

A、正确
B、错误

单选题 创建类使用(  )关键字开始。

A、

type

B、

class

C、

def

D、return