按要求数目分行
from math import ceil
def split_word(lst, size):
word_list = list(
map(lambda x: lst[x * size:x * size + size],
list(range(0, ceil(len(lst) / size)))))
words = ''
if size == 1:
for word in word_list:
words += word
else:
for word in word_list:
words += word + '\n'
return words