python string使用方法_在python中,string[:-2:-1]-CSDN博客

网站介绍:文章浏览阅读160次。[-3:-1]是从-3开始,-1结束。包括-3,不包括-1.[-2:]是从-2开始,-1结束,包括-1,不包括0._在python中,string[:-2:-1]