摘要:
import os def del_none_folder(path): max_len = len(path.split('\\')) for folder,subfolder,file in os.walk(path): # 获取最大路径长度 if len(folder.split('\\')) 阅读全文
posted @ 2019-12-30 11:28
wztshine
阅读(551)
评论(0)
推荐(0)
摘要:
__getattribute__ 、__getattr__ 、__setattr__ 当我们调用 obj.xxx 来访问 obj 的属性时,会自动调用 obj 的 __getattribute__ 方法来返回属性的值。 只有显式的调用 __getattr__,或者当 __getattribute__ 阅读全文
posted @ 2019-12-30 09:42
wztshine
阅读(339)
评论(0)
推荐(0)

浙公网安备 33010602011771号