原因:是python3中range不返回数组对象,而是返回range对象
加个声明为list的语句就行,列表
如下 a = list(range(n))
posted on 2018-07-26 15:52 光小林 阅读(7281) 评论(0) 收藏 举报