Hello everyone , I meet you again , I'm your friend, Quan Jun .
# A large array is cut into countless small arrays
def arr_size(arr, size):
s = []
for i in range(0, int(len(arr)) + 1, size):
c = arr[i:i + size]
s.append(c)
newlist = [x for x in s if x]
return newlist
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/151166.html Link to the original text :https://javaforall.cn