APP下载
首页
>
IT互联网
>
python单选题题目练习题
搜索
python单选题题目练习题
题目内容
(
单选题
)
15.与绝大多数程序设计语言遵循的“向下兼容”原则不同的是,()。

A、 Python 2.x 和 Python 3.x 可以互相兼容彼此的程序

B、 Python 2.x 可以兼容 Python 3.x 的程序

C、 Python 3.x 可以兼容 Python 2.x 的程序

D、 Python 3.x 并不兼容 Python 2.x 的程序

答案:D

python单选题题目练习题
25.以下哪个字符在字符串输出时能起到换行的作用( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd1-91a2-c097-d7557377b600.html
点击查看题目
5.计算机中,一个字节【Byte】包含()个比特【bit】。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebb7-054c-c097-d7557377b600.html
点击查看题目
25. 以 下 程 序 用 于 输 出 正 整 数 m 和 n( ) 的 所 有 相 同 因 子 , 则 空 白 部 分 应 该 填 写 的 内 容是 。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe0-7ff7-c097-d7557377b600.html
点击查看题目
4.对于序列 numbers=[1,2,3,4,5,6,7,8,9,10],以下相关操作中哪一个得到的结果中包含数字 6?
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe3-0035-c097-d7557377b600.html
点击查看题目
14.下列表达式运行后,的结果是 False。( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebcd-3ecd-c097-d7557377b600.html
点击查看题目
12.下列程序段在运行时输入”yes”,则输出结果是( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebf7-cb3f-c097-d7557377b600.html
点击查看题目
8.给定字典 d,以下选项中对 d.values()的描述正确的是( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebeb-db6f-c097-d7557377b600.html
点击查看题目
9.已知字典 dic={'小王':70,'小张':90,'小刘':75},则执行表达式 dic[0]的结果为( )。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebec-32a0-c097-d7557377b600.html
点击查看题目
16.以下程序的输出结果是( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebdc-bfbb-c097-d7557377b600.html
点击查看题目
7.表达式{1,2,3,4}-{3,4,5,6}的值是( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebeb-7679-c097-d7557377b600.html
点击查看题目
首页
>
IT互联网
>
python单选题题目练习题
题目内容
(
单选题
)
手机预览
python单选题题目练习题

15.与绝大多数程序设计语言遵循的“向下兼容”原则不同的是,()。

A、 Python 2.x 和 Python 3.x 可以互相兼容彼此的程序

B、 Python 2.x 可以兼容 Python 3.x 的程序

C、 Python 3.x 可以兼容 Python 2.x 的程序

D、 Python 3.x 并不兼容 Python 2.x 的程序

答案:D

python单选题题目练习题
相关题目
25.以下哪个字符在字符串输出时能起到换行的作用( )

A.  'la

B.  \t
Y

C.  'in'

D.  10'

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd1-91a2-c097-d7557377b600.html
点击查看答案
5.计算机中,一个字节【Byte】包含()个比特【bit】。

A. 16

B. 8

C. 4

D. 2

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebb7-054c-c097-d7557377b600.html
点击查看答案
25. 以 下 程 序 用 于 输 出 正 整 数 m 和 n( ) 的 所 有 相 同 因 子 , 则 空 白 部 分 应 该 填 写 的 内 容是 。

A.  m%i==0 and n%i==0

B.   m%i==0 or n%i==0

C.  m//i==0 and n//i==0

D.  i%m==0 and i%n==0

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe0-7ff7-c097-d7557377b600.html
点击查看答案
4.对于序列 numbers=[1,2,3,4,5,6,7,8,9,10],以下相关操作中哪一个得到的结果中包含数字 6?

A.  >>> numbers[6]

B.  >>> numbers[5:-1]

C.  >>> numbers[-4:-1]

D.  >>> numbers[0: 5]

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe3-0035-c097-d7557377b600.html
点击查看答案
14.下列表达式运行后,的结果是 False。( )

A.  ''<'a

B.  .'Hello'>'hello'

C.  .abcd'<'ad'

D.  .'abcd'>'abc

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebcd-3ecd-c097-d7557377b600.html
点击查看答案
12.下列程序段在运行时输入”yes”,则输出结果是( )

A.  程序出错

B.  ”ok”

C.  没有输出

D.  ”yes”

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebf7-cb3f-c097-d7557377b600.html
点击查看答案
8.给定字典 d,以下选项中对 d.values()的描述正确的是( )

A.  返回一个集合类型,包括字典 d 中所有值

B.  返回一种 dict()values 类型,包括字典 d 中所有值

C.  返回一个任意类型,包括字典 d 中所有值

D.  返回一个列表类型

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebeb-db6f-c097-d7557377b600.html
点击查看答案
9.已知字典 dic={'小王':70,'小张':90,'小刘':75},则执行表达式 dic[0]的结果为( )。

A.  报错

B.  ('小王’,70)

C.  小王

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebec-32a0-c097-d7557377b600.html
点击查看答案
16.以下程序的输出结果是( )

A.  10 is even

B.  10 is even 10 is multiple of 2

C.  10 is multiple of 2

D.  程序出错

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebdc-bfbb-c097-d7557377b600.html
点击查看答案
7.表达式{1,2,3,4}-{3,4,5,6}的值是( )

A.  {1,2,3,4,5,6}

B.  {1,2,3,4}

C.  {1,2}

D.  {3,4}

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebeb-7679-c097-d7557377b600.html
点击查看答案
试题通小程序
试题通app下载