捕获一个将按如下方式打印的异常:Traceback (most recent call last):python read readline readlines。File"c:/tmp.py", line 1, in 4 / 0ZeroDivisionError: integer division or modulo by zeropython打开文件的路径。我想把它格式化为:ZeroDivison
python3 批量修改文件扩展名——递归 '''
Created on 2017年9月28日@author: kearney
'''import osdef isFile(filePath):#修改文件扩展名filename=filePath.split('\\')[-1]#拆分文件路径获得文件名fatherPath=filePath.repla