Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
import numpy as np x0 = [1, 2, 3, 4, 5, 6, 7, 8] xx = np.zeros((8, 20)) xx[:,0] = x0
我想覆盖零数组列,但它给出了一个错误:
无法将输入数组从形状 (8,1) 广播到形状 (8,)