APP下载
首页
>
IT互联网
>
python选择填空题库练习
搜索
python选择填空题库练习
题目内容
(
简答题
)
28.运行以下程序,输出结果为

答案:答案:54321

python选择填空题库练习
16.以下程序的输出结果是( )
https://www.shititong.cn/cha-kan/shiti/00045642-898e-85c4-c0c9-4cc241d27c00.html
点击查看题目
17.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd50-e644-c0c9-4cc241d27c00.html
点击查看题目
12.可使用以下哪已知字符串 s=lcan see green.,个语句改变 s 的值,去除其中的英文句号( )。
https://www.shititong.cn/cha-kan/shiti/00045642-897a-e983-c0c9-4cc241d27c00.html
点击查看题目
22.
以上程序的输出结果为: 。
https://www.shititong.cn/cha-kan/shiti/00045642-8991-913a-c0c9-4cc241d27c00.html
点击查看题目
11.Python 程序既可以在 Shell 环境中交互执行,也可以存储成以.py 为扩展名的程序文件用 Python 解释
器执行。
https://www.shititong.cn/cha-kan/shiti/00045642-896b-d4d8-c0c9-4cc241d27c00.html
点击查看题目
2.下列程序运行结果为( )
https://www.shititong.cn/cha-kan/shiti/00045642-8987-433a-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
点击查看题目
4.在字典中,查找一个键和查找一个值的速度哪个更快些( )
https://www.shititong.cn/cha-kan/shiti/00045642-899c-5434-c0c9-4cc241d27c00.html
点击查看题目
13.字典 d={'Name':Kate',’No':’1001'Age':'20'},表达式 len( )的值为( )
https://www.shititong.cn/cha-kan/shiti/00045642-89a0-a2ba-c0c9-4cc241d27c00.html
点击查看题目
11.python 中用来抛出异常的语句是( )
https://www.shititong.cn/cha-kan/shiti/00045642-89aa-fb66-c0c9-4cc241d27c00.html
点击查看题目
首页
>
IT互联网
>
python选择填空题库练习
题目内容
(
简答题
)
手机预览
python选择填空题库练习

28.运行以下程序,输出结果为

答案:答案:54321

python选择填空题库练习
相关题目
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/00045642-898e-85c4-c0c9-4cc241d27c00.html
点击查看答案
17.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd50-e644-c0c9-4cc241d27c00.html
点击查看答案
12.可使用以下哪已知字符串 s=lcan see green.,个语句改变 s 的值,去除其中的英文句号( )。

A.  s.replace(” ,'')

B.  s=s.replace(” ,'.)

C.  s.replace('' , ”)

D.  s=s.replace('. ,”)

https://www.shititong.cn/cha-kan/shiti/00045642-897a-e983-c0c9-4cc241d27c00.html
点击查看答案
22.
以上程序的输出结果为: 。

A.  True

B. 5

C.  False

D.  无输出

https://www.shititong.cn/cha-kan/shiti/00045642-8991-913a-c0c9-4cc241d27c00.html
点击查看答案
11.Python 程序既可以在 Shell 环境中交互执行,也可以存储成以.py 为扩展名的程序文件用 Python 解释
器执行。

A.  错误

B.  正确

https://www.shititong.cn/cha-kan/shiti/00045642-896b-d4d8-c0c9-4cc241d27c00.html
点击查看答案
2.下列程序运行结果为( )

A.  A

B.  B

C.  C

D.  D

https://www.shititong.cn/cha-kan/shiti/00045642-8987-433a-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
点击查看答案
4.在字典中,查找一个键和查找一个值的速度哪个更快些( )

A.  相同快

B.  无法比较

C.  值

D.  键

https://www.shititong.cn/cha-kan/shiti/00045642-899c-5434-c0c9-4cc241d27c00.html
点击查看答案
13.字典 d={'Name':Kate',’No':’1001'Age':'20'},表达式 len( )的值为( )

A. 9

B. 12

C. 3

D. 6

https://www.shititong.cn/cha-kan/shiti/00045642-89a0-a2ba-c0c9-4cc241d27c00.html
点击查看答案
11.python 中用来抛出异常的语句是( )

A.  try 语句

B.  break 语句

C.  def 语句

D.  continue 语句

https://www.shititong.cn/cha-kan/shiti/00045642-89aa-fb66-c0c9-4cc241d27c00.html
点击查看答案
试题通小程序
试题通app下载