def reverseString(s): l = list(s) rl = l[::-1] return "".join(rl)
def reverseString(s):
l = list(s)
rl = l[::-1]
return "".join(rl)
本文标题:小练习-翻转字符串
本文链接:https://www.haomeiwen.com/subject/lobodttx.html
网友评论