摘要: 自己写的,easy class Solution: def firstUniqChar(self, s: str) -> int: mydict = {} # 创建一个空字典来存储每个字符的出现次数 for i in s: # 遍历给定的字符串 s if not mydict.get(i): # 如 阅读全文
posted @ 2024-04-16 20:36 Junior_bond 阅读(6) 评论(0) 推荐(0)