import random
import string
# ランダムな文字列を発生
def word():
return ''.join(random.choice(string.ascii_lowercase) for i in range(10))
def number(max_val=1000):
return random.randint(0, max_val)
# [▲, *[●,●,●]] で ● が展開され [▲,●,●,●] になる
data = []
def make_table(row, col):
for i in range(0, row):
data.append([i, word(), *[number() for i in range(col - 1)]])
return datamake_table(10, 4)