Reverse String 反转字串

Wisdom_love posted @ 2008年5月17日 16:03 in Python , 1336 阅读
def reverseString(s):

“”"Reverses a string given to it.”"”

return s[::-1]

很神奇,从网上搜的,但不明白原理,您要知道的话,麻烦告诉我,多谢!

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter