【判断题】
由于异常处理结构try…except…finally…中finally里的语句块总是被执行的,所以把关闭文件的代码放到finally块里肯定是万无一失,一定能保证文件被正确关闭并且不会引发任何异常。
A. 对
B. 错
查看试卷,进入试卷练习
微信扫一扫,开始刷题

答案
B
解析
暂无解析
相关试题
【填空题】
26、 假设列表对象aList的值为[3, 4, 5, 6, 7, 9, 11, 13, 15, 17],那么切片aList[3:7]得到的值是____________。___
【填空题】
28、 假设有列表a = [‘name’, ‘age’, ‘sex’]和b = [‘Dong’, 38, ‘Male’],请使用一个语句将这两个列表的内容转换为字典,并且以列表a中的元素为“键”,以列表b中的元素为“值”,这个语句可以写为___________。___))
推荐试题
【单选题】
He looked out of the window and saw a group of children ( )football. ___
A. to play
B. played
C. playing
D. play the
【单选题】
They were short of money and couldn't ( ) the project.___
A. went on with
B. went on doing
C. go on with
D. go on to do
【单选题】
There are many books in our school library, but( )of them is written in Russian.___
A. some
B. all
C. both
D. none
【单选题】
Be quiet! I have( ) to tell you.___
A. something important
B. anything important
C. important something
D. important something
【单选题】
"What do we do now?" Peter said in a low voice. The underlined part means ( ). ___
A. damaged
B. shouted
C. attracted
D. whispered
【单选题】
Sorry, Sir. I completely understand ( ) you feel, but we don’t have pills for coldness on board. ___
A. which
B. what
C. that
D. how
【单选题】
You may refer to ( ) at any time for fly information. ___
A. the music
B. the videos
C. the movies
D. the Air-show
【判断题】
Electronic devices may interfere with the aircraft navigation system during take-off and landing.
A. 对
B. 错
【单选题】
城市轨道交通运营单位承担运营安全风险分级管控和隐患排查治理工作 ,逐级分解责任,确保责任落实到部门和岗位。___
A. 主体责任
B. 部分责任
C. 同等责任
D. 一定责任
【单选题】
城市轨道交通运营安全风险等级从高到低划分为 四个等级。___
A. 重大、较大、一般、较小
B. 特别重大、重大、较大、一般
C. 特别重大、重大、较大、较小
D. 重大、较大、较小、轻微
【单选题】
对于治理难度大、影响范围广、危险程度高、涉及部门多、难以协调整治的重大隐患,城市轨道交通运营主管部门应及时报告 协调解决。 ___
A. 运营公司安全委员会
B. 集团公司安全委员会
C. 董事长
D. 城市人民政府
【单选题】
新增或更新的风险管控措施应及时修订到本单位的相关管理制度、作业标准或应急预案。其中,重大风险管控措施应在 内修订完成。 ___
A. 一年
B. 半月
C. 三个月
D. 一个月
【单选题】
运营单位综合应急预案演练应依托专项应急预案, 至少组织一次实战演练,重点检验运营单位各部门、应急救援组织及相关单位间的协同联动机制。___
A. 每年
B. 每半年
C. 每季度
D. 每月
【单选题】
挤岔是指在正线、配线、 等线路,由于道岔位置不正确、尖轨未能与基本轨密贴,导致列车通过道岔时将尖轨与基本轨挤开或挤坏过程,造成尖轨弯曲变形、转辙机损坏。 ___
A. 车辆段线
B. 车场线
C. 辅助线
D. 试车线