单项选择题
返回文件大小的方法是()
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) -
单项选择题
在os模块中重命名文件的方法是()
A.os.path.isdir(path)
B.os.remove()
C.os.rename()
D.os.listdir(path) -
单项选择题
删除指定文件的方法是()
A.os.remove()
B.os.path.isdir(path)
C.os.path.join
D.os.listdir(path)
