首页题库练习题目详情
Python程序设计单选题中等

以下代码有什么问题? try: file = open('data.txt') except: print('错误发生')

A缺少异常类型
Bexcept块未正确处理异常
Copen语句不需要try块
D未关闭文件