Python中如何每隔30个数取一组长度为90的数

2025-04-03 00:15:55
推荐回答(1个)
回答1:

s=list(range(1134))
a=[s[i*120:(i+1)*120] if((i+1)*120b=[x[:min(90,len(x))] for x in a]