os中有关文件路径常用的方法 os.walk(path) 拆分当前路径,返回 r,ds,fs os.path.exists(path) 当前路径是否存在文件 os.path.join(r, f) 文件名和根目录拼成文件路径