逻辑电路 与门 import numpy as np def yumen(x1, x2): w = np.array([0.5, 0.5]) x = np.array([x1, x2]) b = -0.7 temp = np.sum(w * x)