【单选题】给出如下代码。阅读代码,以下选项中描述错误的是:
A.
用户输入文件路径,以文本文件方式读入文件内容并逐行打印
B.
通过fi.readlines()方法将文件的全部内容读入一个字典fi
C.
通过fi.readlines()方法将文件的全部内容读入一个列表fi
D.
上述代码中fi.readlines()可以优化为fi
【单选题】养护机构的基本工作人员配备中 不包括 :
【单选题】给出如下代码,以下选项中描述错误的是:
【单选题】给出如下代码:a=3while a > 0: a -= 1 print(a,end=" ")以下选项中描述错误的是:
A.
a -= 1 可由 a = a – 1 实现
C.
条件 a > 0 如果修改为 a < 0 程序执行会进入死循环
【单选题】There are some cases _______ students obviously know the school rules but don't obey them.
【单选题】scientists have done a lot of research on A (H1N1) flu, there are still some cases for further study. [ ]
【单选题】There are some cases _______ students obviously know the school rules but don't obey them.
【单选题】________ scientists have done a lot of research on A (H1N1) flu, there are still some cases for further study.
【单选题】给出如下代码,以下选项中描述错误的是:
A.
ls.append(a) 代码中的ls是列表类型
B.
执行代码输出结果为['car', 'truck', 'bus']
C.
执行代码输出结果为['car', 'truck']
D.
代码函数定义中,ls.append(a)中的ls是局部变量