TypeError: string indices must be integers

a[0, 10]   错误

a[0: 10]   正确

原文地址:https://www.cnblogs.com/WalkOnMars/p/13353439.html