最有效的方法是在Python中创建四个列表的所有可能组合?

rin*_*nti 5 python algorithm

我有四个不同的列表.headers,descriptions,short_descriptionsmisc.我想将这些组合成所有可能的打印方式:

header\n
description\n
short_description\n
misc
Run Code Online (Sandbox Code Playgroud)

就像我有(我在这个例子中跳过short_description和misc,原因很明显)

headers = ['Hello there', 'Hi there!']
description = ['I like pie', 'Ho ho ho']
...
Run Code Online (Sandbox Code Playgroud)

我希望它打印出来像:

Hello there
I like pie
...

Hello there
Ho ho ho
...

Hi there!
I like pie
...

Hi there!
Ho ho ho
...
Run Code Online (Sandbox Code Playgroud)

你会说最好/最干净/最有效的方法是什么?是for唯一的出路吗?