1.what will be the output of the fllowing code?
List=['a','b','c','d','e']print(List[10:])--------------------------------[]主要考察的是列表的切片操作Python列表切片Python中符合序列的有序序列都支持切片(slice),例如列表,字符串,元组。 格式:【start:end:step】 start:起始索引,从0开始,-1表示结束 end:结束...
原创
2019-04-23 09:20:47 ·
497 阅读 ·
0 评论