Reverse String 反转字串
def reverseString(s):
"""Reverses a string given to it."""
return s[::-1]

很神奇,从网上搜的,但不明白原理,您要知道的话,麻烦告诉我,多谢!
____________________________
屈武斌
Email: quwubin AT gmail.com
Blog: http://quwubin.cnblogs.com/
屈武斌
Email: quwubin AT gmail.com
Blog: http://quwubin.cnblogs.com/
浙公网安备 33010602011771号