leetcode-71-简化路径

题目描述: 方法: class Solution: def simplifyPath(self, path: str) -> str: stack = [] path = path.split("/") for item in path: if item == "..": i
相关文章
相关标签/搜索