Python報錯之TypeError: only size-1 arrays can be converted to Python scalars

先上代碼 import math import numpy as np import random a = np.zeros((10,3,4)) for i in range(10): for j in range(4): a[i,0,j] = random.uniform(0,1) a[i,1,j] = random.uniform(0,1)
相關文章
相關標籤/搜索