def unify(a,b):
return [[x,y] for x ,y in zip(a,b)]
print(unify([1,2],[9,3]))
def unify(a,b): return [cl[i] for i in range(len(a)) for cl in (a,b)] print(unify([1,2],[9,3]))
解法上面已经给出了, and 是逻辑运算符,逻辑与,表示并且的意思, 一般用在判断中
还有 逻辑非:not
逻辑或:or