#错误集
梓莘
zero-->hero 理性+理智。记住一句话:越努力,越幸运。犯其至难,图其至远。努力规划,实现自我。↖(^ω^)↗
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【Python】‘builtin_function_or_method‘ object is not subscriptable 错误
Python数组初始化报错(括号问题) 错误方式:inArr = array[ffMiles,percentTags,iceCream] 正确方式:inArr = array([ffMiles,percentTags,iceCream])原创 2020-11-11 08:46:04 · 6855 阅读 · 0 评论 -
【Python】numpy 中zeros()函数
初始化0数组 定义 zeros(shape, dtype=None, order='C') 返回 Return a new array of given shape and type, filled with zeros. 示例 >>> np.zeros(5) array([ 0., 0., 0., 0., 0.]) >>> np.zeros((5,), dtype=int) array([0, 0, 0,原创 2020-11-10 17:33:43 · 2126 阅读 · 0 评论 -
【Python】‘dict‘ object has no attribute ‘iteritems‘
iteritems是python2中的函数 python3中的替代函数是:items() eg: sortedClassCount = sorted(classCount.items(),key=operator.itemgetter(1),reverse=True)原创 2020-11-10 17:20:02 · 331 阅读 · 0 评论
分享