标签:HERE style print tle color port extra int numpy
import numpy as np x = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print("x") print(x) y=np.where(x>5) print(y) print(x[y])
condition=np.mod(x,2)==0 print(condition) print(np.extract(condition,x))
标签:HERE style print tle color port extra int numpy
原文地址:https://www.cnblogs.com/shierlou-123/p/11620003.html