Python3 代码
class Solution(object):
def leftRotateString(self, s, n):
"""
:type s: str
:type n: int
:rtype: str
"""
s2 = ""
for i in range (n, len(s)):
s2 += s[i]
for j in range (n):
s2 += s[j]
return s2