Python [::-1]

a = "python"
b = a[::-1]
#result b is "nohtyp"

  

posted @ 2017-01-19 14:09  KennyRom  阅读(195)  评论(0编辑  收藏  举报