def split(total, length=100, minLen=300): if total < minLen: return [total] ret = [i for i in range(length, total, length)] if ret[-1] != total: ret.append(total) return ret - 在线代码运行


            
执行结果

名称:def split(total, length=100, minLen=300): if total < minLen: return [total] ret = [i for i in range(length, total, length)] if ret[-1] != total: ret.append(total) return ret

当前代码

print("tool.apizl.com python2 Hello World!")