from pickle import TRUE # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 旋转字符串 # @param A string字符串 # @param B string字符串 # @return bool布尔型 # class Solution: def solve(self , A: str, B: str) -> bool: # write code here if len(A)!=len(B): return False #A=C+D #B=D+C #A+A中必有B if B in A+A: return True else: return False