字符串反转

1 def reverseString(str,n):
2     """Reverse the String"""
3     if n<len(str)-1:
4         reverseString(str,n+1);
5     print ('%c' % (str[n])),

 

posted @ 2014-05-27 22:38  枫睿  阅读(67)  评论(0)    收藏  举报