字符串逆序


def str(str):
    tr = ''
    for item in str:
        tr = item+tr
    print(tr)
str('123456')

posted @ 2018-10-29 10:19  RideoCos  阅读(140)  评论(0编辑  收藏  举报