class Solution:
def rotateString(self, A, B):
"""
:type A: str
:type B: str
:rtype: bool
"""
if A != B: # 处理空字符串的特殊情况
for _ in range(len(A)):
if A == B : return True
A = A[1:] + A[0]
return False
return True
class Solution: def rotateString(self, A, B): """ :type A: str :type B: str :rtype: bool """ if A != B: # 处理空字符串的特殊情况 for _ i