本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008
摘要
全文介绍系统内置 filecmp 模块、函数、类及类的方法和属性。
它通过代码抓取并经AI智能翻译和人工校对。
是一部不可多得的权威字典类工具书。它是系列集的一部分。后续陆续发布、敬请关注。【原创:AhcaoZhu大侠】
模块图
无。(单一模块,过于简单。)
类的关系
也很简单。不过,保持一惯性,还是贴图吧。
◆object
filecmp.dircmp
模块全展开
【filecmp】
filecmp, fullname=filecmp, file=filecmp.py
比较文件和目录的实用程序。
类:
dircmp
函数:
cmp(f1, f2, shallow=True) -> int
cmpfiles(a, b, common) -> ([], [], [])
clear_cache()
统计
序号 | 类别 | 数量 |
---|---|---|
1 | int | 1 |
4 | str | 5 |
6 | list | 2 |
8 | dict | 2 |
9 | module | 2 |
10 | class | 2 |
11 | function | 8 |
13 | residual | 2 |
14 | system | 9 |
15 | private | 5 |
16 | all | 24 |
常量
int
1 BUFSIZE 8192
list
2 DEFAULT_IGNORES [‘RCS’, ‘CVS’, ‘tags’, ‘.git’, ‘.hg’, ‘.bzr’, ‘_darcs’, ‘pycache’]
dict
3 _cache {}
模块
4 os
os, fullname=os, file=os.py
5 stat
stat, fullname=stat, file=stat.py
函数
6 clear_cache()
clear_cache(), module=filecmp, line:25 at filecmp.py
清除filecmp缓存。
7 cmp(f1, f2, shallow=True)
cmp(f1, f2, shallow=True), module&