文件操作 - recursive_error.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/python3-rich/examples/recursive_error.py
编辑文件内容
""" Demonstrates Rich tracebacks for recursion errors. Rich can exclude frames in the middle to avoid huge tracebacks. """ from rich.console import Console def foo(n): return bar(n) def bar(n): return foo(n) console = Console() try: foo(1) except Exception: console.print_exception(max_frames=20)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件