numpy数组练习
numpy练习题
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
用约定俗成的方式导入numpy库
import numpy as np
arr1 = np.random.randn(3,4) 创建形状和arr1一样的全0数组
arr1 = np.random.randn(3,4)
np.zeros_like(arr1)
array([
原创
2021-03-24 01:00:02 ·
297 阅读 ·
0 评论