首页->Python应用师
Python标准库os中用来列出指定文件夹中的文件和子文件夹列表的方式是( )。
(A)listdir()
(B)dirs()
(C)ls_dirs()
(D)list_dirs()
参考答案
![微考学堂](/images/gzh.png)
更多Python应用师试题
- 1表达式 list(map(lambda x: x+5, [1, 2, 3, 4, 5])) 的值为( )。
- 2已知 x = [1, 2, 3, 2, 3],执行语句 x.remove(2) 之后,x的值为( )。
- 3给定字典d = {1:"1", 2:"2", 3: "3"},其元素包含两种数据类型,则字典d的数据组织维度是(
)。
- 4下面代码的输出结果是( )。
a = [1, 2, 3]
b = a[:]
print(b)
- 5已知函数定义 def func(*p):return sum(p),那么表达式 func(1,2,3) 的值为( )。