def aa(s,n): #n%=len(s) return s[n:]+s[:n] print(aa(‘abddh‘,2))
剑指offer python版 左旋转字符串
原文:https://www.cnblogs.com/xzm123/p/9870405.html