One - One Code All

Blog Content

numpy给矩阵元素统一赋值

Python 统计学-科学计算   2014-03-14 17:59:17
import numpy as np
x = np.zeros((6,6))
T = np.full(x.shape,3)
print(T)
x = np.ones((20))
T = np.full(x.shape,3)
print(T)



上一篇:python获取上级模块目录-父级,祖父级,祖祖父级
下一篇:Docker初步

The minute you think of giving up, think of the reason why you held on so long.