摘要: 自己写的: class Solution: def licenseKeyFormatting(self, s: str, k: int) -> str: # 将字符串转换为列表,方便操作 new_S = list() # 遍历输入字符串 for i in s: # 如果当前字符不是 '-',则添加到 阅读全文
posted @ 2024-05-12 16:34 Junior_bond 阅读(12) 评论(0) 推荐(0)