(array: List, item_num=10)
| 190 | |
| 191 | |
| 192 | def sub_array(array: List, item_num=10): |
| 193 | result = [] |
| 194 | temp = [] |
| 195 | for item in array: |
| 196 | temp.append(item) |
| 197 | if len(temp) >= item_num: |
| 198 | result.append(temp) |
| 199 | temp = [] |
| 200 | if len(temp) > 0: |
| 201 | result.append(temp) |
| 202 | return result |
| 203 | |
| 204 | |
| 205 | def bytes_to_uploaded_file(file_bytes, file_name="file.txt"): |
no test coverage detected