摘要: 1、使用到的语句 import os 库 os.listdir(path) 返回文件名字符串列表 os.path.isdir(path) 判断文件名是否是文件夹 os.path.getsize(path) 获取文件大小,默认是字节 2、代码讲解 1 import os 2 def get_size( 阅读全文
posted @ 2019-09-24 22:50 补码 阅读(912) 评论(0) 推荐(0) 编辑