result = s[::-1]
l = list(s) l.reverse() result = "".join(l)
本文标题:python倒置字符串
本文链接:https://www.haomeiwen.com/subject/bqucdctx.html
网友评论