我学完3.1后所获得的东西列表索引从0开始,而不是从一开始有负索引,访问最后一个,通常将索引指为-1names=['one','two','three','four']print(names[1].title())message = " i like "+ names[2].title() + " the most" + "."print(message)print(names[-1])
Two i like Three the most.four