#匹配文件名要求, 不区分大小写
fnmatch.fnmatch(filename, pattern)
fnmathc.fnmatch('txt.py', '*.Py') # True
#匹配文件名是否符合要求,区分大小写
fnmatch.fnmatchcase(filename, pattern)
fnmatch.fnmatchcase('txt.py', '*.py') # True
fnmatch.fnmatch(filename, pattern)
fnmathc.fnmatch('txt.py', '*.Py') # True
#匹配文件名是否符合要求,区分大小写
fnmatch.fnmatchcase(filename, pattern)
fnmatch.fnmatchcase('txt.py', '*.py') # True
2020-01-25
转PDF提示
AttributeError: 'NoneType' object has no attribute 'SaveAs'
AttributeError: 'NoneType' object has no attribute 'SaveAs'
2019-08-07