相关考题
-
单项选择题
os.path.exists(path/filename)的作用是()()
A.判断文件是否存在
B.列出指定目录的文件或文件夹
C.取得当前工作目录
D.将分离的各部分组合成一个路径名 -
单项选择题
返回文件大小的方法是()
A.os.path.exists(path/filename)
B.os.rename()
C.os.walk(path)
D.os.path.getsize(filename) -
单项选择题
创建目录或多层目录的方法是()()
A.os.mkdir/makedirs(dirname)
B.os.path.getsize(filename)
C.os.path.exists(path/filename)
D.os.walk(path)
