摘要: https://blog.csdn.net/mingyuli/article/details/81604795 a='python' b=a[::-1] print(b) #nohtyp c=a[::-2] print(c) #nhy #从后往前数的话,最后一个位置为-1 d=a[:-1] #从位置 阅读全文
posted @ 2022-06-20 10:27 juneyiiii 阅读(1357) 评论(0) 推荐(0)