标签:遍历 store == mac lan class file path 配置信息
遍历mac系统访达文件时候要注意了,每个文件夹会多出来一个隐藏文件.DS_Store,是用来储存文件夹配置信息的
import os
a,*b = os.walk(root_path) # a--> (root_path, children dirnames, children files)
files = a[-1]
for file in files:
if file == ‘.DS_Store‘:
continue
标签:遍历 store == mac lan class file path 配置信息
原文地址:https://www.cnblogs.com/lyzz1314/p/13170148.html