x y = iravel
This line of code assumes that i is a NumPy array with shape (2,). It assigns the first element of i to x and the second element of i to y, by flattening the array using the ravel() method.
For example, if i = np.array([3, 4]), then x = 3 and y = 4.
原文地址: https://www.cveoy.top/t/topic/buZS 著作权归作者所有。请勿转载和采集!