APP下载
首页
>
财会金融
>
计算机python题库总
搜索
计算机python题库总
题目内容
(
判断题
)
5.( )在Python语言里,循环结构必须有else子句。

答案:B

计算机python题库总
7.( )指令”what”in{“love”,”python”,123,”what”,”good”}执行后结果为True。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-cec3-c032-a61f4fe39600.html
点击查看题目
2.( )下面代码中循环结束后,count的值是()
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-0265-c032-a61f4fe39600.html
点击查看题目
9.( )对于两个集合s1和s2,s1<s2的意思是?
https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-020e-c032-a61f4fe39600.html
点击查看题目
1.( )列表lst=[12,-5,-22,-10,-26,35,0,49,3,-21],则lst[100]的结果是运行错误。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-637c-c032-a61f4fe39600.html
点击查看题目
13.( )列表中索引值为-1的元素指的是最后一个元素。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-7b92-c032-a61f4fe39600.html
点击查看题目
15.( )列表a=[1,2,[3,4]],则3ina为真。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-7f73-c032-a61f4fe39600.html
点击查看题目
7.( )()表示追加模式,不覆盖文件中原有内容
https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-9144-c032-a61f4fe39600.html
点击查看题目
15.( )现有一元组:x=(1,2,3,4)以下对元组操作正确的是()。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-c098-c032-a61f4fe39600.html
点击查看题目
16.( )以下对字典的说法错误的是()。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-1128-c032-a61f4fe39600.html
点击查看题目
8.( )foriinrange(10):……代码段中,i的循环终值是10。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-fa11-c032-a61f4fe39600.html
点击查看题目
首页
>
财会金融
>
计算机python题库总
题目内容
(
判断题
)
手机预览
计算机python题库总

5.( )在Python语言里,循环结构必须有else子句。

答案:B

分享
计算机python题库总
相关题目
7.( )指令”what”in{“love”,”python”,123,”what”,”good”}执行后结果为True。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-cec3-c032-a61f4fe39600.html
点击查看答案
2.( )下面代码中循环结束后,count的值是()

A. 6

B. 5

C. 4

D. 0

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-0265-c032-a61f4fe39600.html
点击查看答案
9.( )对于两个集合s1和s2,s1<s2的意思是?

A. s1的大小小于s2的大小

B. s1的元素比s2的小

C. s1是s2的真子集

D. s2是s1的真子集

https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-020e-c032-a61f4fe39600.html
点击查看答案
1.( )列表lst=[12,-5,-22,-10,-26,35,0,49,3,-21],则lst[100]的结果是运行错误。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-637c-c032-a61f4fe39600.html
点击查看答案
13.( )列表中索引值为-1的元素指的是最后一个元素。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-7b92-c032-a61f4fe39600.html
点击查看答案
15.( )列表a=[1,2,[3,4]],则3ina为真。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-7f73-c032-a61f4fe39600.html
点击查看答案
7.( )()表示追加模式,不覆盖文件中原有内容

A. r

B. a

C. w

D. +

https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-9144-c032-a61f4fe39600.html
点击查看答案
15.( )现有一元组:x=(1,2,3,4)以下对元组操作正确的是()。

A. y=x[0]

B. y=x(0)

C. x[0]=0

D. x(0)=0

https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa9-c098-c032-a61f4fe39600.html
点击查看答案
16.( )以下对字典的说法错误的是()。

A. 字典可以为空

B. 字典的键不能相同

C. 字典的键不可变

D. 字典的键对应的值不可变

https://www.shititong.cn/cha-kan/shiti/00057e3f-2faa-1128-c032-a61f4fe39600.html
点击查看答案
8.( )foriinrange(10):……代码段中,i的循环终值是10。
https://www.shititong.cn/cha-kan/shiti/00057e3f-2fa8-fa11-c032-a61f4fe39600.html
点击查看答案
试题通小程序
试题通app下载