Python魔法方法-__getslice__,__setslice__,__delslice__
__getslice__,__setslice__,__delslice__该三个方法用于切片操作,如:列表(仅2.x版本)#-*-coding:utf_8-*-classFoo(object):def__getslice__(self,i,j):print('__getslice__',i,j)def__setslice__(self,i,j,sequence):print('__setslic