TypeError: slice indices must be integers or None or have an __index__method
解决:在python3 中的列表转换时,其起始和结束都需为整型
TypeError: 'float' object cannot be interpreted as an integer
解决:python3的/运算结果为float型
python2的/运算结果为商的部分,int型
TypeError: slice indices must be integers or None or have an __index__method
解决:在python3 中的列表转换时,其起始和结束都需为整型
TypeError: 'float' object cannot be interpreted as an integer
解决:python3的/运算结果为float型
python2的/运算结果为商的部分,int型