摘要:
把iteritems改为items 阅读全文
posted @ 2018-07-04 10:29
GXTon
阅读(2042)
评论(0)
推荐(0)
摘要:
摘自:http://www.runoob.com/python/python-func-sorted.html sortedClassCount=sorted(classCount.items(),key=operator.itemgetter(1),reverse=True) #把'iterite 阅读全文
posted @ 2018-07-04 10:27
GXTon
阅读(418)
评论(0)
推荐(0)
摘要:
摘自:https://www.cnblogs.com/yushuo1990/p/5880041.html argsort函数argsort函数返回的是数组值从小到大的索引值 Examples One dimensional array:一维数组 >>> x = np.array([3, 1, 2]) 阅读全文
posted @ 2018-07-04 09:55
GXTon
阅读(7434)
评论(0)
推荐(0)
摘要:
摘自https://blog.csdn.net/ikerpeng/article/details/17026011 其实python中sum有两种 一种是python自己的sum 另一种是python的numpy库里的sum 阅读全文
posted @ 2018-07-04 09:44
GXTon
阅读(1265)
评论(0)
推荐(0)
摘要:
tile函数位于python模块 numpy.lib.shape_base中,他的功能是重复某个数组。比如tile(A,n),功能是将数组A重复n次,构成一个新的数组,我们还是使用具体的例子来说明问题:(至于为什么是在numpy.lib.shape_base中,我还是不太清楚.) 其实tile就是重 阅读全文
posted @ 2018-07-04 09:36
GXTon
阅读(6508)
评论(0)
推荐(0)

浙公网安备 33010602011771号