摘要: ## 各种形状转换方法 >>> import numpy as np >>> a=np.floor(10*np.random.random((3,4))) >>> a array([[6., 0., 1., 3.], [6., 9., 9., 1.], [8., 4., 8., 4.]]) >>> 阅读全文
posted @ 2021-07-19 15:15 君*邪 阅读(26) 评论(0) 推荐(0) 编辑
摘要: # 第一天学习内容 - numpy数组的创建,相关概念 - 空值、多维数组的创建 - 注意括号形式,多维数组每行元素个数相等 >>> import numpy as np >>> a=np.arange(15).reshape(3,5) >>> a.shape (3, 5) >>> a array( 阅读全文
posted @ 2021-07-19 15:14 君*邪 阅读(45) 评论(0) 推荐(0) 编辑
摘要: CanvasRenderingContext2D 实例1 <canvas id="myCanvas" style="border: 1px solid red">canvas</canvas> <button type="button" id="bt" onclick="f()">draw</but 阅读全文
posted @ 2021-07-19 15:04 君*邪 阅读(101) 评论(0) 推荐(0) 编辑
摘要: CanvasRenderingContext2D 实例1 <canvas id="myCanvas" style="border: 1px solid red">canvas</canvas> <button type="button" id="bt" onclick="f()">draw</but 阅读全文
posted @ 2021-07-19 15:03 君*邪 阅读(65) 评论(0) 推荐(0) 编辑