public static void main(String[] args) { TheMonthOfTheLastDay themonthofthelastday = new TheMonthOfTheLastDay(); System.out.p

python行索引代码 python索引规则

在python中的列表类型可以往里面加入各种对象的元素。列表类型中索引和切片在【list】也可以进行索引和切片,不过是以元素为单位的,而不是以字符为单位。在切片中,索引序号也是从0开始的>>>a = ['2',3,'make'] ['2',3,'make'] a[0] #索引序号从0开始 'make'