Python [::-1]

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

  

原文地址:https://www.cnblogs.com/KennyRom/p/6306423.html