python的反串输出比C要容易很多
def reverse(text):
word = ""
l= len(text) -1
while l>=0:
word = word +text[l]
l -=l
return word