摘要: numpy.array(object, dtype=None, copy=True, order='K', subok=False, ndmin=0) numpy array方法主要用于生成矩阵,下面对array的参数进行逐个讲解。 dtype: 是矩阵的数据类型,默认为序列对象所需的最小类型。 c 阅读全文
posted @ 2022-12-15 22:04 吴九江 阅读(27) 评论(0) 推荐(0)
摘要: class Rectangle(): def getperi(self,a,b): return(a+b)*2 def getArea(self,a,b): return a*b rect = Rectangle() print(rect.getperi(3,4)) print(rect.getAr 阅读全文
posted @ 2022-09-24 16:51 吴九江 阅读(29) 评论(0) 推荐(0)