Python [::-1]

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

  

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