首页
高清电影
无损音乐
游戏攻略
电脑教程
破解资源
站长资源
软件下载
当前位置:
首页
>>
脚本专栏
Python 字符串中的字符倒转
编辑:jimmy
日期: 2024/9/22 浏览:1 次
方法一,使用[::-1]:
s = 'python'
print s[::-1]
方法二,使用reverse()方法:
l = list(s)
l.reverse()
print ''.join(l)
输出结果:
nohtyp
nohtyp
最新资源
许冠杰.2003-四合一珍藏集4CD【宝丽金】【WAV+C
李宇春.2014-1987我不知会遇见你【天娱传媒】【
梁汉文.1995-抱着你感觉很好【华星】【WAV+CUE】
《情歌回首 HIFI国语老歌 2CD》[WAV/分轨][1.2G
《降央卓玛 草原绝色醇美的歌声 金色的卓玛》[W
《赵雷 30首经典城市民谣 2CD》[WAV/分轨][1.3G
仙境传说新启航兑换码怎么使用 仙境传说兑换码使
魔兽世界地心之战武器战用什么饰品 地心之战武器
仙境传说新启航一区是哪个区 仙境传说一区服务器
叶倩文2014《影视金曲》LPCD45【WAV+CUE】