![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Manipultor
你说呢
展开
-
python 装饰器 初次理解
def sayName(func): print('name') def inner(): print("I'm Yu") return func() return inner def sayAge(func): print('age') def inner(): print("i'm 30") ...原创 2020-01-01 10:39:44 · 87 阅读 · 0 评论 -
python numpy stack
从matlab转到python numpy还是适应的不舒服,就矩阵这块计算,代码真没matlab优美简洁。当然两者定位是不一样的。 对于numpyarray 其实不存在像matlab那样的行向量,列向量,这点体现在计算上的调用有点不一样。我尝试从嵌套层数理解array. 重点理解 ndim,shape,size属性. ndim指明了几层[]嵌套,shape是每层上的元素个数,size...原创 2019-12-25 21:44:36 · 103 阅读 · 0 评论