矩阵转为 0 1 矩阵
大于 0.2 是 1,否则是 0
import numpy as np a = np.random.rand(5,3) print(a) b = np.int64(a>0.2) print(b)