python 字符串翻转

通过步进反转[::-1]

a = 'abcd'
b = a[::-1]##[::-1]通过步进反转
print b
posted @   老王python  阅读(1149)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示