发布网友
共1个回答
热心网友
aa[0:6] 表示取 第0,1,2,3,4,5 位的数据 所以是6个 123456
aa[:-1] 表示取开始到倒数第二位的数据 所以也是123456
就像 for i in range(7):
print i
0,1,2,3,4,5,6
最后一位 都不包括