NumPy中ndarray类型属性、创建和变换

Recommend:

        First,I highly recommend 嵩天's classes which is pretty good for guys like us .

Yeah,I have learn a lot from that gentle and tender young man . So,come and learn

python with us .

 

https://www.icourse163.org/learn/BIT-1001870002?tid=1206192225#/learn/content?type=detail&id=1210784853&cid=1213173497&replay=true 

Click this you will enter into songtian's classes .

https://python123.io/index/open

A platform for practice .

 

Point:

 

ndarray的属性:
 .ndim
 .shape
 .size
 .dtype
 .itemsize

 

                        

                       

 

ndarray的创建:
    前提import numpy as np    
    np.array()
    np.arrange()
    np.ones(shape)
    np.zeros()
    np.full(shape,val)
    np.ones_like(a)
    np.zeros_like(a)
    np.full_like(a,val)

 

ndarray的变换:
    .reshape()
    .resize()
    .flatten()

    .astype()

See you next time , ciao !

 

 

 

©️2020 CSDN 皮肤主题: 书香水墨 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值