标签:span 列表 color class 转换 pre col nbsp range
>>> a = [1,2,3,4,5,6,7,8,9,0] >>> n = 3 >>> c= [a[i:i+n] for i in range(0, len(a), n)]
把一个大列表,转换成一个个小列表
原文地址:https://www.cnblogs.com/kaiyaoweixiao/p/13347720.html