APP下载
首页
>
财会金融
>
计算机python题库总
搜索
计算机python题库总
题目内容
(
单选题
)
6.( )运行以下程序:

A、 [1,2,3]

B、 [3,2,1]

C、 运算错误

D、 输入的不是列表

答案:D

计算机python题库总
11.( )列表是动态数据结构,因此可以添加元素或者删除已有的元素。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-776f-c032-a61f4fe39600.html
点击查看题目
7.( )指令”what”in{“love”,”python”,123,”what”,”good”}执行后结果为True。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-cec3-c032-a61f4fe39600.html
点击查看题目
8.( )”假设有这样的一个示例:types=['娱乐','体育','科技']我们在使用列表时,以下哪个表达式,会引起索引错误?
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-91c1-c032-a61f4fe39600.html
点击查看题目
17.( )在一行上输入两个字符串到两个变量a、b中的语句正确的是()。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-bdc8-c032-a61f4fe39600.html
点击查看题目
2.( )执行如下语句: 那么x的类型是()。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-9c90-c032-a61f4fe39600.html
点击查看题目
14.( )Python中的模块也是Python程序。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-34be-c032-a61f4fe39600.html
点击查看题目
5.( )执行以下程序,输入la,输出结果是:
https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-44de-c032-a61f4fe39600.html
点击查看题目
5.( )Python集合中的元素不可以是()。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-f9d5-c032-a61f4fe39600.html
点击查看题目
14.( )集合的交集、并集、对称差集运算借助于位运算符&、|、^来实现,差集用减号运算符实现。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-deab-c032-a61f4fe39600.html
点击查看题目
9.( )关于条件判断语句中的条件:要求s小于50大于等于20,以下()选项描述不正确。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-df69-c032-a61f4fe39600.html
点击查看题目
首页
>
财会金融
>
计算机python题库总
题目内容
(
单选题
)
手机预览
计算机python题库总

6.( )运行以下程序:

A、 [1,2,3]

B、 [3,2,1]

C、 运算错误

D、 输入的不是列表

答案:D

分享
计算机python题库总
相关题目
11.( )列表是动态数据结构,因此可以添加元素或者删除已有的元素。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-776f-c032-a61f4fe39600.html
点击查看答案
7.( )指令”what”in{“love”,”python”,123,”what”,”good”}执行后结果为True。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-cec3-c032-a61f4fe39600.html
点击查看答案
8.( )”假设有这样的一个示例:types=['娱乐','体育','科技']我们在使用列表时,以下哪个表达式,会引起索引错误?

A. types[-1]

B. types[-2]

C. types[-3]

D. types[3]

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-91c1-c032-a61f4fe39600.html
点击查看答案
17.( )在一行上输入两个字符串到两个变量a、b中的语句正确的是()。

A. a,b=input()

B. a,b=input().split()

C. a=input();b=input()

D. a=input(b)

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-bdc8-c032-a61f4fe39600.html
点击查看答案
2.( )执行如下语句: 那么x的类型是()。

A. 整数

B. 字符串

C. 浮点数

D. 无正确答案

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-9c90-c032-a61f4fe39600.html
点击查看答案
14.( )Python中的模块也是Python程序。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-34be-c032-a61f4fe39600.html
点击查看答案
5.( )执行以下程序,输入la,输出结果是:

A. la

B. 请输入整数

C. pythonpython

D. python

https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-44de-c032-a61f4fe39600.html
点击查看答案
5.( )Python集合中的元素不可以是()。

A. 数字

B. 字符串

C. 元组

D. 列表

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-f9d5-c032-a61f4fe39600.html
点击查看答案
14.( )集合的交集、并集、对称差集运算借助于位运算符&、|、^来实现,差集用减号运算符实现。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-deab-c032-a61f4fe39600.html
点击查看答案
9.( )关于条件判断语句中的条件:要求s小于50大于等于20,以下()选项描述不正确。

A. 20<=s<50是合法的

B. 20<=s<50不是合法的

C. s=20

D. s20ors=20)

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-df69-c032-a61f4fe39600.html
点击查看答案
试题通小程序
试题通app下载