单项选择题
在Python中,如何获取一个文件的大小?()
A.os.path.getsize(file)
B.file.size()
C.os.size(file)
D.fileSize(file)
点击查看答案&解析
相关考题
-
单项选择题
在Python中,如何将两个列表合并?()
A.list1+list2
B.list1.extend(list2)
C.list1.merge(list2)
D.A和B都对 -
单项选择题
在Python中,如何获取系统的当前工作目录?()
A.os.getcwd()
B.sys.cwd()
C.os.currentdir()
D.sys.currentdir() -
单项选择题
在Python中,如何将字符串转换为小写?()
A.str.lower()
B.str.toLowerCase()
C.toLower(str)
D.lower(str)
