文件操作 - compat.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/jmespath/compat.py
编辑文件内容
import sys import inspect from itertools import zip_longest text_type = str string_type = str def with_str_method(cls): # In python3, we don't need to do anything, we return a str type. return cls def with_repr_method(cls): return cls def get_methods(cls): for name, method in inspect.getmembers(cls, predicate=inspect.isfunction): yield name, method
修改文件时间
将文件时间修改为当前时间的前一年
删除文件