#python 字符串翻转string="how are you"def func(s): i=1 re="" for x in s: re+=s[len(s)-i] i=i+1 return re print func(string)