APP下载
首页
>
IT互联网
>
python单选题题目练习题
搜索
python单选题题目练习题
题目内容
(
单选题
)
25.以下哪个字符在字符串输出时能起到换行的作用( )

A、 'la

B、 \t
Y

C、 'in'

D、 10'

答案:C

python单选题题目练习题
25. 以 下 程 序 用 于 输 出 正 整 数 m 和 n( ) 的 所 有 相 同 因 子 , 则 空 白 部 分 应 该 填 写 的 内 容是 。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe0-7ff7-c097-d7557377b600.html
点击查看题目
12.以下程序的输出结果为 。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebda-eb08-c097-d7557377b600.html
点击查看题目
24.已知 s1=2,s2='ab',则表达式 s1*s2 的值为( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd1-31d9-c097-d7557377b600.html
点击查看题目
22.
以上程序的输出结果为: 。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebdf-4b07-c097-d7557377b600.html
点击查看题目
1.Python 语言的特点不包含( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebb4-1ca4-c097-d7557377b600.html
点击查看题目
13.下列方法仅适用于列表,而不适用于字符串的是( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe7-4fc8-c097-d7557377b600.html
点击查看题目
5.计算机中,一个字节【Byte】包含()个比特【bit】。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebb7-054c-c097-d7557377b600.html
点击查看题目
13.假设现在有两个变量分别是 x 和 y,其中 x=3,y=5,以下选项中()不能交换两个变量中的值。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc1-3655-c097-d7557377b600.html
点击查看题目
4.已知字符串 s=l am Tommy,则以下哪个字符串的方法能从 s 中提取所有单词( )
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc9-6498-c097-d7557377b600.html
点击查看题目
28.执行下列程序段,输入数值 10,输出的结果是()。
https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc7-756a-c097-d7557377b600.html
点击查看题目
首页
>
IT互联网
>
python单选题题目练习题
题目内容
(
单选题
)
手机预览
python单选题题目练习题

25.以下哪个字符在字符串输出时能起到换行的作用( )

A、 'la

B、 \t
Y

C、 'in'

D、 10'

答案:C

python单选题题目练习题
相关题目
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
点击查看答案
12.以下程序的输出结果为 。

A.  A

B.  B

C.  C

D.  D

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebda-eb08-c097-d7557377b600.html
点击查看答案
24.已知 s1=2,s2='ab',则表达式 s1*s2 的值为( )

A.  ’abab'

B.  报错

C.  2ab

D.  'ab2’

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebd1-31d9-c097-d7557377b600.html
点击查看答案
22.
以上程序的输出结果为: 。

A.  True

B. 5

C.  False

D.  无输出

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebdf-4b07-c097-d7557377b600.html
点击查看答案
1.Python 语言的特点不包含( )

A.  Python 语言程序必须通过修改才能跨平台运行

B.  Python 语言是支持面向对象的编程语言

C.  Python 语言采用解释执行

D.  Python 语言十分简洁

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebb4-1ca4-c097-d7557377b600.html
点击查看答案
13.下列方法仅适用于列表,而不适用于字符串的是( )

A.  sort()

B.  find()

C.  index()

D.  count()

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebe7-4fc8-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
点击查看答案
13.假设现在有两个变量分别是 x 和 y,其中 x=3,y=5,以下选项中()不能交换两个变量中的值。

A.  t=x x=y y=t

B.  x,y=y,x

C.  x=y y=x

D.  x=x+y y=x-y x=x-y

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc1-3655-c097-d7557377b600.html
点击查看答案
4.已知字符串 s=l am Tommy,则以下哪个字符串的方法能从 s 中提取所有单词( )

A.  index

B.  join

C.  insert

D.  split

https://www.shititong.cn/cha-kan/shiti/0000ce1a-ebc9-6498-c097-d7557377b600.html
点击查看答案
28.执行下列程序段,输入数值 10,输出的结果是()。

A.  '15'

B.  程序出错

C.  '105'

D. 15

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