标签:obj nbsp tin sel return result while col self
简单题
class Solution(object): def firstUniqChar(self, s): """ :type s: str :rtype: int """ k=[] i=0 while i<len(s): if s[i] in k: i+=1 elif s.count(s[i])==1: return i else: k.append(s[i]) i+=1 return -1
标签:obj nbsp tin sel return result while col self
原文地址:https://www.cnblogs.com/taoyuxin/p/11737234.html