def _make_tag_list(n=26):
'''Returns a list of tag dicts, starting with 'aa, bb, ..., zz', then
'aaa, bbb, ..., zzz', etc. Tags must be at least 2 characters.'''
lc = string.lowercase
lc_len = len(lc)
return [{'name': lc[i % lc_len] * int(math.ceil(i / lc_len) + 2)}
for i in range(0, n)]
评论列表
文章目录