
class Solution:
def isUnique(self, astr: str) -> bool:
for i in astr:
if astr.count(i) == 1:
continue
else:
return False
return True

class Solution:
def isUnique(self, astr: str) -> bool:
for i in astr:
if astr.count(i) == 1:
continue
else:
return False
return True
332
126
414

被折叠的 条评论
为什么被折叠?