# 2个骰子时
dice_list = [
    [one, two]
        for one in range(1,7)
            for two in range(1,7)
]


# 5个骰子时
dice_list = [
    [one, two, three, four, fire]
        for one in range(1,7)
            for two in range(1,7)
                for three in range(1,7)
                    for four in range(1,7)
                        for fire in range(1,7)
]

# 输入骰子个数,就能自动生成dice_list,这个函数要怎么写
# 求大神看看


↙↙↙阅读原文可查看相关链接,并与作者交流