标签:join string ring 字符串 += while begin eve 反转
def reverseString(s):
begin = 0
end = len(s)-1
ss = list(s)
while(end>begin):
ss[begin], ss[end] = ss[end], ss[begin]
end -= 1
begin += 1
return ''.join(ss)
标签:join string ring 字符串 += while begin eve 反转
原文地址:https://www.cnblogs.com/JetBlock/p/11969821.html