解决AttributeError: ‘range’ object has no attribute ‘pop’ 报错代码示例 a = range(6) a.pop() 解决方法 a = list(range(6)) a.pop()