单选题

列表、元组、字符串是Python的(序列)

A、

有序

B、

无序

下载APP答题
由4l***1w提供 分享 举报 纠错

相关试题

单选题 下列语句中,()在Python中是非法的。

A、x += y
B、x,y=y,x
C、x=(y=z+1)
D、x=y=z=1

单选题 Python语句 a=[1,2,3,None,[[ ]],[]] print(len(a)) 以上代码的运行结果是()

A、4
B、6
C、7
D、5

单选题 下列表达式中,返回True的是( )

A、a=2 b=2 a=b
B、2!=2
C、3>2>1
D、True and False

单选题 假设从键盘输入的值是20,以下程序的输出结果是()

age = input("please input your age:")

if age>=18:

print("已成年!")

else:

print("未成年!")

A、

程序运行错误

B、

已成年!

C、

未成年!

单选题 字典的____方法返回字典的“键”列表

A、items()
B、key()
C、values()
D、keys()

单选题 写出下面代码的运行结果。 Plain Text def Sum(a, b=3, c=5): print(a,b,c) Sum(a=8, c=2)

A、8,2
B、8 3 2
C、8 2
D、8,3,2

单选题 以下程序的输出结果是() a, x, y, ok1, ok2=100, 10, 20, 5, 0 if x<y: if y!=10: if not ok1: a=1 elif ok2: a=10 a=-1 print(a)

A、-1
B、值不确定
C、0
D、1

单选题 使用( )符号对浮点类型的数据进行格式化

A、%s
B、%c
C、%f
D、%d