APP下载
首页
>
IT互联网
>
python选择填空题库练习
搜索
python选择填空题库练习
题目内容
(
单选题
)
9.已知字典 dic={'小王':70,'小张':90,'小刘':75},则执行表达式 dic[0]的结果为( )。

A、 报错

B、 ('小王’,70)

C、 小王

答案:A

python选择填空题库练习
34.下列语句的输出结果是()。>>>int(10.88)
https://www.shititong.cn/cha-kan/shiti/00045648-dd40-f251-c0c9-4cc241d27c00.html
点击查看题目
42.下列语句的输出结果是:’ ‘>>>'abc'* 3
https://www.shititong.cn/cha-kan/shiti/00045648-dd43-c80e-c0c9-4cc241d27c00.html
点击查看题目
29.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd53-b297-c0c9-4cc241d27c00.html
点击查看题目
30.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd53-e848-c0c9-4cc241d27c00.html
点击查看题目
19.以下程序的输出结果是( )
https://www.shititong.cn/cha-kan/shiti/00045642-8990-0918-c0c9-4cc241d27c00.html
点击查看题目
29.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd4e-e00e-c0c9-4cc241d27c00.html
点击查看题目
15.运行以下程序后,文件 result.txt 中的内容为( )
https://www.shititong.cn/cha-kan/shiti/00045642-89ad-0d5a-c0c9-4cc241d27c00.html
点击查看题目
14.下列不是 Python 对文件的写操作的方法是( )
https://www.shititong.cn/cha-kan/shiti/00045642-89ac-b281-c0c9-4cc241d27c00.html
点击查看题目
3.由字符串 s='this is a pen' 获得 This Is A Pen 的方法为( )
https://www.shititong.cn/cha-kan/shiti/00045642-8975-f013-c0c9-4cc241d27c00.html
点击查看题目
25. 以 下 程 序 用 于 输 出 正 整 数 m 和 n( ) 的 所 有 相 同 因 子 , 则 空 白 部 分 应 该 填 写 的 内 容是 。
https://www.shititong.cn/cha-kan/shiti/00045642-8992-cdee-c0c9-4cc241d27c00.html
点击查看题目
首页
>
IT互联网
>
python选择填空题库练习
题目内容
(
单选题
)
手机预览
python选择填空题库练习

9.已知字典 dic={'小王':70,'小张':90,'小刘':75},则执行表达式 dic[0]的结果为( )。

A、 报错

B、 ('小王’,70)

C、 小王

答案:A

python选择填空题库练习
相关题目
34.下列语句的输出结果是()。>>>int(10.88)
https://www.shititong.cn/cha-kan/shiti/00045648-dd40-f251-c0c9-4cc241d27c00.html
点击查看答案
42.下列语句的输出结果是:’ ‘>>>'abc'* 3
https://www.shititong.cn/cha-kan/shiti/00045648-dd43-c80e-c0c9-4cc241d27c00.html
点击查看答案
29.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd53-b297-c0c9-4cc241d27c00.html
点击查看答案
30.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd53-e848-c0c9-4cc241d27c00.html
点击查看答案
19.以下程序的输出结果是( )

A. 4

B. 1

C.  死循环

D. 6

https://www.shititong.cn/cha-kan/shiti/00045642-8990-0918-c0c9-4cc241d27c00.html
点击查看答案
29.阅读以下程序,填写运行结果
https://www.shititong.cn/cha-kan/shiti/00045648-dd4e-e00e-c0c9-4cc241d27c00.html
点击查看答案
15.运行以下程序后,文件 result.txt 中的内容为( )

A.  A

B.  B

C.  C

D.  D

https://www.shititong.cn/cha-kan/shiti/00045642-89ad-0d5a-c0c9-4cc241d27c00.html
点击查看答案
14.下列不是 Python 对文件的写操作的方法是( )

A.  write()

B.  writelines()

C.  seek()

D.  next()

https://www.shititong.cn/cha-kan/shiti/00045642-89ac-b281-c0c9-4cc241d27c00.html
点击查看答案
3.由字符串 s='this is a pen' 获得 This Is A Pen 的方法为( )

A.  s.title()

B.  s.isupper()

C.  s.upper()

D.  s.capitalize()

https://www.shititong.cn/cha-kan/shiti/00045642-8975-f013-c0c9-4cc241d27c00.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/00045642-8992-cdee-c0c9-4cc241d27c00.html
点击查看答案
试题通小程序
试题通app下载