#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)
微信扫一扫
#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)
相关推荐