APP下载
首页
>
IT互联网
>
python选择填空题库练习
搜索
python选择填空题库练习
题目内容
(
简答题
)
20.已知 set1={0,1,2,3},set2={2,3,4,5}。通过集合计算得到 set3={4,5},可以用表达式 set3 = 实现。(在空格处填写合适的集合计算表达式)

答案:答案:set2-set1

python选择填空题库练习
26.字符串 A=“123456”,A[::-1]的结果是( )
https://www.shititong.cn/cha-kan/shiti/00045642-8980-ec23-c0c9-4cc241d27c00.html
点击查看题目
13.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd50-336a-c0c9-4cc241d27c00.html
点击查看题目
49.已知字符串 s='1234',则表达式 str(s.index('3')+s.count('34'))*len(s)的值为‘ ’
https://www.shititong.cn/cha-kan/shiti/00045648-dd45-5221-c0c9-4cc241d27c00.html
点击查看题目
11.执行表达式 2+'1a'后,结果为( )
https://www.shititong.cn/cha-kan/shiti/00045642-897a-789a-c0c9-4cc241d27c00.html
点击查看题目
28.运行以下程序,输出结果为
https://www.shititong.cn/cha-kan/shiti/00045648-dd4b-5527-c0c9-4cc241d27c00.html
点击查看题目
30.表达式“1//3”的结果是()。
https://www.shititong.cn/cha-kan/shiti/00045648-dd40-1a2f-c0c9-4cc241d27c00.html
点击查看题目
4.世界上第一台电子计算机“ENIAC”于 1946 年诞生于()大学。
https://www.shititong.cn/cha-kan/shiti/00045642-8954-d5a4-c0c9-4cc241d27c00.html
点击查看题目
16.已知字典 dic={('小明',1):[90,80],('小红'2):[65,88],('小琳',3):[90,100]},则表达式'小明' indic 的值为
https://www.shititong.cn/cha-kan/shiti/00045648-dd4b-fe27-c0c9-4cc241d27c00.html
点击查看题目
4.已知字符串 s=l am Tommy,则以下哪个字符串的方法能从 s 中提取所有单词( )
https://www.shititong.cn/cha-kan/shiti/00045642-8976-5031-c0c9-4cc241d27c00.html
点击查看题目
44.下列语句的输出结果是' ‘>>>{1}的基本{0}{2} .format( 编写,’程序',’”方法”’)
https://www.shititong.cn/cha-kan/shiti/00045648-dd44-398b-c0c9-4cc241d27c00.html
点击查看题目
首页
>
IT互联网
>
python选择填空题库练习
题目内容
(
简答题
)
手机预览
python选择填空题库练习

20.已知 set1={0,1,2,3},set2={2,3,4,5}。通过集合计算得到 set3={4,5},可以用表达式 set3 = 实现。(在空格处填写合适的集合计算表达式)

答案:答案:set2-set1

python选择填空题库练习
相关题目
26.字符串 A=“123456”,A[::-1]的结果是( )

A.  ”654321”

B.  ”6”

C. "1"

D.  ”123456”

https://www.shititong.cn/cha-kan/shiti/00045642-8980-ec23-c0c9-4cc241d27c00.html
点击查看答案
13.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd50-336a-c0c9-4cc241d27c00.html
点击查看答案
49.已知字符串 s='1234',则表达式 str(s.index('3')+s.count('34'))*len(s)的值为‘ ’
https://www.shititong.cn/cha-kan/shiti/00045648-dd45-5221-c0c9-4cc241d27c00.html
点击查看答案
11.执行表达式 2+'1a'后,结果为( )

A. 3

B.  '21a'

C.  报错

D.  '21

https://www.shititong.cn/cha-kan/shiti/00045642-897a-789a-c0c9-4cc241d27c00.html
点击查看答案
28.运行以下程序,输出结果为
https://www.shititong.cn/cha-kan/shiti/00045648-dd4b-5527-c0c9-4cc241d27c00.html
点击查看答案
30.表达式“1//3”的结果是()。
https://www.shititong.cn/cha-kan/shiti/00045648-dd40-1a2f-c0c9-4cc241d27c00.html
点击查看答案
4.世界上第一台电子计算机“ENIAC”于 1946 年诞生于()大学。

A.  美国哈佛

B.  美国卡耐基梅隆

C.  英国剑桥

D.  美国宾夕法尼亚

https://www.shititong.cn/cha-kan/shiti/00045642-8954-d5a4-c0c9-4cc241d27c00.html
点击查看答案
16.已知字典 dic={('小明',1):[90,80],('小红'2):[65,88],('小琳',3):[90,100]},则表达式'小明' indic 的值为
https://www.shititong.cn/cha-kan/shiti/00045648-dd4b-fe27-c0c9-4cc241d27c00.html
点击查看答案
4.已知字符串 s=l am Tommy,则以下哪个字符串的方法能从 s 中提取所有单词( )

A.  index

B.  join

C.  insert

D.  split

https://www.shititong.cn/cha-kan/shiti/00045642-8976-5031-c0c9-4cc241d27c00.html
点击查看答案
44.下列语句的输出结果是' ‘>>>{1}的基本{0}{2} .format( 编写,’程序',’”方法”’)
https://www.shititong.cn/cha-kan/shiti/00045648-dd44-398b-c0c9-4cc241d27c00.html
点击查看答案
试题通小程序
试题通app下载