asarray() function and then flatten the array using the flatten() method to convert it into a one-dimensional array. import numpy as np tup = ([ ...
確定! 回上一頁