单选题 以下哪个方法可以将列表转换为元组?

A、 tuple()
B、 list()
C、 set()
D、 dict()
下载APP答题
由4l***tu提供 分享 举报 纠错

相关试题

单选题 以下哪个是正确的 Python 注释?

A、 // This is a comment
B、 /* This is a comment */
C、 # This is a comment
D、 -- This is a comment

单选题 以下哪个数据类型在 Python 中是不可变的?

A、 列表
B、 字典
C、 元组
D、 集合

单选题 Python 中,以下哪个循环语句会在条件不满足时结束循环?

A、 for
B、 while
C、 do-while
D、 以上都是

单选题 以下哪个是 Python 合法的变量名?

A、 1_variable、
B、 variable-1、
C、 my_variable、
D、 my-variable

单选题 Python 中用于输出的函数是?

A、 input()
B、 print()
C、 output()
D、 write()

单选题 以下关于 Python 函数的描述,错误的是?

A、 函数可以没有返回值
B、 函数可以有多个返回值
C、 函数内部定义的变量是全局变量
D、 函数可以调用自身

单选题 以下哪个不是 Python 的关键字?

A、 if
B、 else
C、 then
D、 while

单选题 以下表达式的结果为 True 的是?

A、 3 > 5 and 5 < 7
B、 3 > 5 or 5 < 7
C、 not (3 > 5)
D、 5 == '5'