文件操作 - _stack.py
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/_stack.py
编辑文件内容
from typing import List, TypeVar T = TypeVar("T") class Stack(List[T]): """A small shim over builtin list.""" @property def top(self) -> T: """Get top of stack.""" return self[-1] def push(self, item: T) -> None: """Push an item on to the stack (append in stack nomenclature).""" self.append(item)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件